
Öffentliche Methoden | |
| LinkAction () | |
| remove () | |
| delete () | |
| saveprop () | |
| save () | |
| showprop () | |
| edit () | |
| prop () | |
Öffentliche Attribute | |
| $link | |
| $defaultSubAction = 'prop' | |
Definiert in Zeile 62 der Datei LinkAction.class.php.
| LinkAction::delete | ( | ) |
Definiert in Zeile 93 der Datei LinkAction.class.php.
Benutzt Action::addNotice() und Action::hasRequestVar().
00094 { 00095 if ( $this->hasRequestVar("delete") ) 00096 { 00097 $this->link->delete(); 00098 $this->addNotice('link',$this->link->name,'DELETED'); 00099 } 00100 }
| LinkAction::edit | ( | ) |
Definiert in Zeile 157 der Datei LinkAction.class.php.
Benutzt Action::forward(), Object::getAllObjectIds(), lang(), Action::setTemplateVar() und Action::setTemplateVars().
00158 { 00159 $this->setTemplateVars( $this->link->getProperties() ); 00160 00161 // Typ der Verkn?pfung 00162 $this->setTemplateVar('type' ,$this->link->getType() ); 00163 $this->setTemplateVar('targetobjectid',$this->link->linkedObjectId); 00164 $this->setTemplateVar('url' ,$this->link->url ); 00165 00166 // Alle verlinkbaren Objekte anzeigen 00167 $list = array(); 00168 00169 foreach( Object::getAllObjectIds() as $oid ) 00170 { 00171 $o = new Object( $oid ); 00172 $o->load(); 00173 00174 if ( $o->isFile || 00175 $o->isPage ) 00176 { 00177 $folder = new Folder( $o->parentid ); 00178 $folder->linknames = false; 00179 $folder->load(); 00180 $list[$oid] = lang( 'GLOBAL_'.$o->getType() ).': '; 00181 $list[$oid] .= implode( FILE_SEP,$folder->parentObjectNames( false,true ) ); 00182 $list[$oid] .= FILE_SEP.$o->name; 00183 } 00184 } 00185 asort( $list ); 00186 $this->setTemplateVar('objects',$list); 00187 00188 $this->forward('link_edittarget'); 00189 }
| LinkAction::LinkAction | ( | ) |
Konstruktor
Definiert in Zeile 70 der Datei LinkAction.class.php.
Benutzt Session::getObject(), Action::getRequestId() und Session::setObject().
00071 { 00072 if ( $this->getRequestId() != 0 ) 00073 { 00074 $this->link = new Link( $this->getRequestId() ); 00075 $this->link->load(); 00076 Session::setObject( $this->link ); 00077 } 00078 else 00079 { 00080 $this->link = Session::getObject(); 00081 } 00082 }
| LinkAction::prop | ( | ) |
Definiert in Zeile 193 der Datei LinkAction.class.php.
Benutzt Action::setTemplateVar() und Action::setTemplateVars().
00194 { 00195 $this->setTemplateVars( $this->link->getProperties() ); 00196 $this->setTemplateVar('act_linkobjectid',$this->link->linkedObjectId); 00197 }
| LinkAction::remove | ( | ) |
Definiert in Zeile 86 der Datei LinkAction.class.php.
Benutzt Action::setTemplateVars().
00087 { 00088 $this->setTemplateVars( $this->link->getProperties() ); 00089 }
| LinkAction::save | ( | ) |
Abspeichern der Eigenschaften
Definiert in Zeile 126 der Datei LinkAction.class.php.
Benutzt Action::getRequestVar() und Session::setObject().
00127 { 00128 if( $this->getRequestVar('type') != '' ) 00129 { 00130 if ( $this->getRequestVar('type') == 'link' ) 00131 { 00132 $this->link->isLinkToObject = true; 00133 $this->link->isLinkToUrl = false; 00134 $this->link->linkedObjectId = $this->getRequestVar('targetobjectid'); 00135 } 00136 else 00137 { 00138 $this->link->isLinkToObject = false; 00139 $this->link->isLinkToUrl = true; 00140 $this->link->url = $this->getRequestVar('url'); 00141 } 00142 00143 $this->link->save(); 00144 $this->link->setTimestamp(); 00145 Session::setObject( $this->link ); 00146 } 00147 }
| LinkAction::saveprop | ( | ) |
Abspeichern der Eigenschaften
Definiert in Zeile 107 der Datei LinkAction.class.php.
Benutzt Action::getRequestVar() und Session::setObject().
00108 { 00109 // Wenn Name gefuellt, dann Datenbank-Update 00110 if ( $this->getRequestVar('name') != '' ) 00111 { 00112 // Eigenschaften speichern 00113 $this->link->name = $this->getRequestVar('name' ); 00114 $this->link->desc = $this->getRequestVar('description'); 00115 00116 $this->link->save(); 00117 $this->link->setTimestamp(); 00118 Session::setObject( $this->link ); 00119 } 00120 }
| LinkAction::showprop | ( | ) |
Definiert in Zeile 150 der Datei LinkAction.class.php.
Benutzt Action::setTemplateVars().
00151 { 00152 $this->setTemplateVars( $this->link->getProperties() ); 00153 }
| LinkAction::$defaultSubAction = 'prop' |
Definiert in Zeile 65 der Datei LinkAction.class.php.
| LinkAction::$link |
Definiert in Zeile 64 der Datei LinkAction.class.php.
1.5.8