コード例 #1
0
ファイル: widget.php プロジェクト: eliudiaz/p4a
 /**
  * @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)));
 }
コード例 #2
0
ファイル: data_source.php プロジェクト: eliudiaz/p4a
 public function __construct($name)
 {
     parent::__construct($name);
     $this->build("P4A_Collection", "fields");
 }
コード例 #3
0
ファイル: mask.php プロジェクト: eliudiaz/p4a
 /**
  * Sets the focus on object
  * @param P4A_Object $object
  * @return P4A_Mask
  */
 public function setFocus(P4A_Object $object = null)
 {
     if ($object instanceof P4A_Object) {
         $this->focus_object_id = $object->getId();
         $this->_redesign_focus = true;
     } elseif ($object === null) {
         $this->focus_object_id = null;
     }
     return $this;
 }