CMS  Version 3.9
link_picker.inc File Reference

Go to the source code of this file.

Functions

 getLink ($section, $identifier)
 

Variables

 $editor = $_GET["Editor"]
 
 $itemsByType = array()
 
 $tree = new TreeControl("items")
 
$tree width = "100%"
 
$tree height = "300"
 
$tree selectMode = "navigation"
 
 $sections = Query::create(Section, "ORDER BY section")->execute()
 
foreach($sections as $section$script = $tree->writeScript()
 

Function Documentation

◆ getLink()

getLink (   $section,
  $identifier 
)

Definition at line 82 of file link_picker.inc.

83 {
84  $url = ($section->section == "/") ? "/$identifier" : "/{$section->section}/$identifier";
85 
86  return $url;
87 }
$section
Definition: event_form.inc:44
if(! $blog->published||! $blog->enable_rss_feed||!checkRole($blog->allow_read)) $url
Definition: rss.inc:58

Variable Documentation

◆ $editor

$editor = $_GET["Editor"]

Definition at line 37 of file link_picker.inc.

◆ $itemsByType

$itemsByType = array()

Definition at line 39 of file link_picker.inc.

◆ $script

foreach ( $sections as $section) $script = $tree->writeScript()

Definition at line 78 of file link_picker.inc.

◆ $sections

$sections = Query::create(Section, "ORDER BY section")->execute()

Definition at line 47 of file link_picker.inc.

◆ $tree

$tree = new TreeControl("items")

Definition at line 42 of file link_picker.inc.

◆ height

$tree height = "300"

Definition at line 44 of file link_picker.inc.

◆ selectMode

$tree selectMode = "navigation"

Definition at line 45 of file link_picker.inc.

◆ width

$tree width = "100%"

Definition at line 43 of file link_picker.inc.