Exemple #1
0
 /**
  * Class constructor. Accepts id value and array of parameters:
  * <ul>
  * <li>pos_x: X position of the object in the view. Unit depends on view type</li>
  * <li>pos_y: Y position of the object in the view. Unit depends on view type</li></ul>
  * 
  * @param string $id
  * @param array $params
  */
 public function __construct($id = null, array $params = null)
 {
     $this->_setParameterObjects(array('pos_x' => new Parameter(Parameter::INTEGER), 'pos_y' => new Parameter(Parameter::INTEGER)));
     parent::__construct($id, $params);
 }
Exemple #2
0
 public function __construct($id, array $params = array())
 {
     parent::__construct($id, $params);
     $this->setPrivileges(Acl::getGrantedResources($this->getId()));
 }