Esempio n. 1
0
 /**
  * Constructor.
  *
  * @param array An array of parameters (order is significant)
  */
 public function __construct($params = null)
 {
     // Store controller name
     $this->name = Inflector::controllerClass_controllerCommand(get_class($this));
     // Store parameters
     if (func_num_args() > 0) {
         $this->params = $params;
     }
     // If it exists in the sub-class, merge $privateMethods into the base class' $allPrivateMethods list
     if (isset($this->privateMethods)) {
         $this->allPrivateMethods = array_merge($this->allPrivateMethods, $this->privateMethods);
     }
 }