Exemplo n.º 1
0
 /**
  * @param string Object identifier, when you add an object to another object (such as $p4a) you can access to it by $p4a->object_name
  * @param string Prefix string for ID generation
  * @param string Object ID identifies an object in the $p4a's object collection. You can set a static ID if you want that all clients uses the same ID (tipically for web sites).
  */
 public function __construct($name = null, $prefix = 'obj', $id = null)
 {
     parent::__construct($name, $prefix, $id);
     $this->addCSSClass(strtolower(get_class($this)));
 }
Exemplo n.º 2
0
 public function __construct($name)
 {
     parent::__construct($name);
     $this->build("P4A_Collection", "fields");
 }
Exemplo n.º 3
0
 /**
  * @param string $name Object name (identifier)
  */
 public function __construct($name = null)
 {
     if ($name == null) {
         $name = get_class($this);
     }
     $name = strtolower($name);
     parent::__construct($name, 'ma');
     $this->build("P4A_Collection", "fields");
     $this->build("P4A_Button", "close_popup_button");
     $this->close_popup_button->addAjaxAction("onclick");
     $this->close_popup_button->setIcon("exit");
     $this->close_popup_button->implement('onclick', P4A::singleton(), 'showPrevMask');
     $this->title = ucfirst(str_replace('_', ' ', $this->getName()));
     $this->useTemplate('default');
 }