[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/view/admin/ -> admineditlinkview.class.php (source)

   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       * \ingroup View
   8       * @private
   9       */    
  10      class AdminEditLinkView extends AdminTemplatedView
  11      {
  12          
  13  		function AdminEditLinkView( $blogInfo, $params = Array())
  14          {
  15              $this->AdminTemplatedView( $blogInfo, "editlink" );
  16          }
  17          
  18          /**
  19           * Carries out the specified action
  20           */
  21          function render()
  22          {
  23              // get all the link categories but we have to respect the order that the user asked
  24              $blogSettings = $this->_blogInfo->getSettings();
  25              $order = $blogSettings->getValue( 'link_categories_order', MYLINKS_CATEGORIES_NO_ORDER );            
  26              $linkCategories = new MyLinksCategories();
  27              $blogLinkCategories = $linkCategories->getMyLinksCategories( $this->_blogInfo->getId(), $order );
  28              $this->notifyEvent( EVENT_LINK_CATEGORIES_LOADED, Array( "linkcategories" => &$blogLinkCategories ));
  29  
  30              // put the data in the view
  31              $this->setValue( "linkcategories", $blogLinkCategories );
  32  
  33              parent::render();
  34          }
  35      }
  36  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics