/** * An iframe element. * * Any extra parameters are added as either content, attributes or handled * as special types, if defined as such for this element. * * @param mixed $src We assume the first element is src, unless a later element is explicitly specified as such * @param mixed $arg_array \MUtil_Ra::args arguments */ public function __construct($src, $arg_array = null) { $args = \MUtil_Ra::args(func_get_args(), array('src' => 'MUtil_Html_SrcArrayAttribute')); if (isset($args['src']) && !$args['src'] instanceof \MUtil_Html_AttributeInterface) { $args['src'] = new \MUtil_Html_SrcArrayAttribute($args['src']); } parent::__construct('iframe', $args); }
/** * An A element, shows the url as content when no other content is available. * * Any extra parameters are added as either content, attributes or handled * as special types, if defined as such for this element. * * @param mixed $href We assume the first element contains the href, unless a later element is explicitly specified as such * @param mixed $arg_array \MUtil_Ra::args arguments */ public function __construct($href, $arg_array = null) { $args = \MUtil_Ra::args(func_get_args(), array('href' => 'MUtil_Html_HrefArrayAttribute')); if (isset($args['href']) && !$args['href'] instanceof \MUtil_Html_AttributeInterface) { $args['href'] = new \MUtil_Html_HrefArrayAttribute($args['href']); } parent::__construct('a', $args); $this->setOnEmpty($this->href); }
public function __construct($arg_array = null) { $args = \MUtil_Ra::args(func_get_args()); parent::__construct('p', $args); }
public function __construct($arg_array = null) { $args = \MUtil_Ra::args(func_get_args()); parent::__construct('div', array('class' => 'form-group'), $args); }