Ejemplo n.º 1
0
 /**
  * Constructor
  *
  * @param   array  $config  Optional configurations to be used
  * @return  void
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('unpublish', 'publish');
     $this->registerTask('close', 'open');
     $this->registerTask('apply', 'save');
     $this->registerTask('add', 'edit');
 }
Ejemplo n.º 2
0
 /**
  * Class Constructor
  *
  * @param   array  $config  An optional associative array of configuration settings.
  * @return  void
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Map the apply task to the save method.
     $this->registerTask('apply', 'save');
 }