Ejemplo n.º 1
0
 /**
  * Gadget Element Constructor
  *
  * This is the gadget constructor.
  *
  * @uses  parent::__construct
  * @uses  AbstractDocument
  * @param string $url  The url of the gadget (It's XML content). Default ''
  */
 public function __construct($url = '')
 {
     parent::__construct(AbstractDocument::$ELEMENTS->GADGET, array('url' => $url));
 }
Ejemplo n.º 2
0
 /**
  * Image Element Constructor
  * 
  * This is the image element constructor.
  *
  * @uses  parent::__construct()
  * 
  * @param string $url  The url of the image
  * @param string $width The width of the image
  * @param string $height The height of the image
  * @param string $attachmentid The attachment id of the image
  * @param string $caption Any caption that could be on the image.
  */
 public function __construct($url = '', $width = null, $height = null, $attachmentId = null, $caption = null)
 {
     parent::__construct(AbstractDocument::$ELEMENTS->IMAGE, array('url' => $url, 'width' => $width, 'height' => $height, 'attachmentId' => $attachmentId, 'caption' => $caption));
 }
Ejemplo n.º 3
0
 /**
  * FormElement Constructor
  *
  * This method creates a new object FormElement
  *
  * @uses  parent::__construct()
  *
  * @param string $elementType  The new form element type
  * @param string $name         The name of the new element
  * @param string $value        The value of that new element
  * @param string $defaultValue The default value of that new element
  * @param string $label        The label of that new element
  */
 public function __construct($elementType, $name, $value = '', $defaultValue = '', $label = '')
 {
     parent::__construct($elementType, array('value' => $value, 'defaultValue' => $defaultValue, 'label' => $label));
 }