
Öffentliche Methoden | |
| execute () | |
Öffentliche Attribute | |
| $parameters | |
| $folderid = 0 | |
| $forward_text = 'read more ...' | |
| $title_html_tag = 'h2' | |
| $title_css_class = '' | |
| $description_css_class = '' | |
| $link_css_class = '' | |
| $description = 'Creates a teaser list of pages in a folder' | |
| $api | |
Definiert in Zeile 37 der Datei TeaserList.class.php.
| TeaserList::execute | ( | ) |
Erneute Implementation von Dynamic.
Definiert in Zeile 67 der Datei TeaserList.class.php.
Benutzt Dynamic::folderid(), Dynamic::getRootObjectId(), Dynamic::output() und Dynamic::pathToObject().
00068 { 00069 $feed = array(); 00070 00071 if ( !empty($this->title_css_class) ) 00072 $this->title_css_class = ' class="'.$this->title_css_class.'"'; 00073 00074 if ( !empty($this->description_css_class) ) 00075 $this->description_css_class = ' class="'.$this->description_css_class.'"'; 00076 00077 if ( !empty($this->link_css_class) ) 00078 $this->link_css_class = ' class="'.$this->link_css_class.'"'; 00079 00080 // Lesen des Root-Ordners 00081 if ( intval($this->folderid) == 0 ) 00082 $folder = new Folder( $this->getRootObjectId() ); 00083 else 00084 $folder = new Folder( intval($this->folderid) ); 00085 00086 $folder->load(); 00087 00088 // Schleife ueber alle Inhalte des Root-Ordners 00089 foreach( $folder->getObjects() as $o ) 00090 { 00091 if ( $o->isPage ) // Nur wenn Ordner 00092 { 00093 $p = new Page( $id ); 00094 $p->load(); 00095 00096 $this->output( '<'.$this->title_html_tag.$this->title_css_class.'>'.$p->name.'</'.$this->title_html_tag.'>' ); 00097 $this->output( '<p'.$this->description_css_class.'>'.$p->desc.'</p>' ); 00098 $this->output( '<p><a href="'.$this->pathToObject($o->objectid).'"'.$this->link_css_class.'>'.$this->forward_text.'</a></p>' ); 00099 } 00100 } 00101 }
| TeaserList::$api |
Definiert in Zeile 64 der Datei TeaserList.class.php.
| TeaserList::$description = 'Creates a teaser list of pages in a folder' |
Bitte immer eine Beschreibung benutzen, dies ist fuer den Web-Developer hilfreich. String
Erneute Implementation von Dynamic.
Definiert in Zeile 63 der Datei TeaserList.class.php.
| TeaserList::$description_css_class = '' |
Definiert in Zeile 56 der Datei TeaserList.class.php.
| TeaserList::$folderid = 0 |
Definiert in Zeile 52 der Datei TeaserList.class.php.
| TeaserList::$forward_text = 'read more ...' |
Definiert in Zeile 53 der Datei TeaserList.class.php.
| TeaserList::$link_css_class = '' |
Definiert in Zeile 57 der Datei TeaserList.class.php.
| TeaserList::$parameters |
Initialisierung:
Array(
'folderid' =>'Id of the folder whose pages should go into the list, default: the root folder',
'forward_text' =>'Link text, default: "read more..."',
'title_html_tag' =>'HTML-Tag for the titles, default: "h2"',
'title_css_class' =>'CSS-Class to use for title, default: ""',
'description_css_class'=>'CSS-Class to use for description, default: ""',
'link_css_class' =>'CSS-Class to use for the forward link, default: ""'
)
Erneute Implementation von Dynamic.
Definiert in Zeile 43 der Datei TeaserList.class.php.
| TeaserList::$title_css_class = '' |
Definiert in Zeile 55 der Datei TeaserList.class.php.
| TeaserList::$title_html_tag = 'h2' |
Definiert in Zeile 54 der Datei TeaserList.class.php.
1.5.8