/** * @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))); }
public function __construct($name) { parent::__construct($name); $this->build("P4A_Collection", "fields"); }
/** * 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; }