[ 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/action/admin/chooser/ -> adminuserpictureselectaction.class.php (source)

   1  <?php
   2  
   3      lt_include( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
   4      lt_include( PLOG_CLASS_PATH."class/view/admin/chooser/adminuserpictureselectview.class.php" );
   5      lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
   6  
   7      /**
   8       * \ingroup Action
   9       * @private
  10       *
  11       * Deletes a resource from the blog
  12       */
  13      class AdminUserPictureSelectAction extends AdminAction
  14      {
  15          
  16          var $_albumId;
  17          
  18          /**
  19          * Constructor. If nothing else, it also has to call the constructor of the parent
  20           * class, BlogAction with the same parameters
  21           */
  22          function AdminUserPictureSelectAction( $actionInfo, $request )
  23          {
  24              $this->AdminAction( $actionInfo, $request );
  25          }
  26          
  27  		function validate()
  28          {
  29              // if the album id is not vald, let's start from the top album again
  30              $this->_albumId = $this->_request->getValue( "albumId" );
  31              $val = new IntegerValidator();
  32              if( !$val->validate( $this->_albumId ))
  33                  $this->_albumId = 0;
  34              
  35              return true;
  36          }
  37          
  38          /**
  39              * Carries out the specified action
  40           */
  41          function perform()
  42          {
  43              
  44              $this->_view = new AdminUserPictureSelectView( $this->_blogInfo, Array( "albumId" => $this->_albumId ));
  45              $this->setCommonData();
  46              
  47              return true;
  48          }
  49      }
  50  ?>


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