diff --git a/routeSQL.php b/routeSQL.php index 9cefb74..cf662d2 100644 --- a/routeSQL.php +++ b/routeSQL.php @@ -54,6 +54,11 @@ class routeSQL public $chained = null; /** Chain multiple routeSQL. Wait for the foreign key */ public $chainedForeign = null; + /** Allow one or multiple links by entry in the list + The array must be of the form array ("linkname"=>,"icon"=>) + icon is optional and the linkname is used if it is not provided */ + public $internalLinks = array (); + /** The model file containing the database description */ private $model_file = ""; /** The model class included in the model file */ @@ -487,6 +492,18 @@ class routeSQL dgettext("domframework", "Are you sure to delete this entry?")."')\""; $content .= " class='delete'>".$this->textDelete.""; + foreach ($this->internalLinks as $linkData) + { + if (! isset ($linkData["linkname"])) + throw new Exception ("No linkname defined !", 500); + $content .= " "; + if (isset ($linkData["icon"])) + $content .= $linkData["icon"]; + else + $content .= $linkData["linkname"]; + } $content .= ""; } if ($this->actionsAtEnd === false)