| [ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" ); 4 lt_include( PLOG_CLASS_PATH."class/dao/mylinkscategories.class.php" ); 5 6 7 /** 8 * \ingroup View 9 * @private 10 * 11 * shows the view to add a new link 12 */ 13 class AdminNewLinkView extends AdminTemplatedView 14 { 15 var $_templateName; 16 17 /** 18 * Constructor. If nothing else, it also has to call the constructor of the parent 19 * class, BlogAction with the same parameters 20 */ 21 function AdminNewLinkView( $blogInfo, $params = Array()) 22 { 23 24 $this->AdminTemplatedView( $blogInfo, "newlink" ); 25 } 26 27 /** 28 * Carries out the specified action 29 */ 30 function render() 31 { 32 // get all the link categories but we have to respect the order that the user asked 33 $blogSettings = $this->_blogInfo->getSettings(); 34 $order = $blogSettings->getValue( 'link_categories_order', MYLINKS_CATEGORIES_NO_ORDER ); 35 $linkCategories = new MyLinksCategories(); 36 $blogLinkCategories = $linkCategories->getMyLinksCategories( $this->_blogInfo->getId(), $order ); 37 $this->notifyEvent( EVENT_LINK_CATEGORIES_LOADED, Array( "linkcategories" => &$blogLinkCategories )); 38 39 // put the data in the view 40 $this->setValue( "linkcategories", $blogLinkCategories ); 41 42 parent::render(); 43 } 44 } 45 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
|