コード例 #1
0
ファイル: HtmlList.php プロジェクト: jcheron/phalcon-jquery
 /**
  * {@inheritDoc}
  * @see \Ajax\common\html\html5\HtmlCollection::createItem()
  */
 protected function createItem($value)
 {
     $item = new HtmlDoubleElement("item-" . $this->identifier . "-" . $this->count());
     $item->setTagName("li");
     $item->setContent($value);
     return $item;
 }
コード例 #2
0
 public function setDescription($description)
 {
     $descO = new HtmlDoubleElement("desc-" . $this->identifier, "span");
     $descO->setClass("description");
     $descO->setContent($description);
     return $this->addContent($descO, true);
 }
コード例 #3
0
 public function run(JsUtils $js)
 {
     parent::run($js);
     $this->_bsComponent = $js->bootstrap()->generic("#" . $this->identifier);
     $this->addEventsOnRun($js);
     return $this->_bsComponent;
 }
コード例 #4
0
ファイル: HtmlStep.php プロジェクト: jcheron/phalcon-jquery
 public function setAttached($side = "", HtmlDoubleElement $toElement = NULL)
 {
     if (isset($toElement)) {
         $toElement->addToPropertyCtrl("class", "attached", array("attached"));
     }
     return $this->addToPropertyCtrl("class", $side . " attached", Side::getConstantValues("attached"));
 }
コード例 #5
0
ファイル: HtmlOption.php プロジェクト: jcheron/phalcon-jquery
 public function __construct($identifier, $caption, $value = "")
 {
     parent::__construct($identifier, "option");
     $this->_template = '<option id="%identifier%" value="%value%" %selected% %properties%>%content%</option>';
     $this->content = $caption;
     $this->value = $value;
     $this->selected = "";
 }
コード例 #6
0
ファイル: HtmlHeader.php プロジェクト: jcheron/phalcon-jquery
 public function asTitle($title, $subHeader = NULL)
 {
     if (!\is_object($title)) {
         $this->content = new HtmlDoubleElement("content-" . $this->identifier, "div");
         $this->content->setContent($title);
     } else {
         $this->content = $title;
     }
     $this->content->setClass("content");
     if (isset($subHeader)) {
         $sub = new HtmlDoubleElement("subheader-" . $this->identifier, "div");
         $sub->setClass("sub header");
         $sub->setContent($subHeader);
         $this->content->addContent($sub);
     }
     return $this;
 }
コード例 #7
0
 public function __construct($identifier, $value = NULL, $placeholder = NULL, $rows = NULL)
 {
     parent::__construct($identifier, "textarea");
     $this->setValue($value);
     $this->setPlaceholder($placeholder);
     if (isset($rows)) {
         $this->setRows($rows);
     }
 }
コード例 #8
0
 public function run(JsUtils $js)
 {
     $this->_bsComponent = $js->semantic()->generic("#" . $this->identifier);
     parent::run($js);
     $this->addEventsOnRun($js);
     if (isset($this->_popup)) {
         $this->_popup->run($js);
     }
     return $this->_bsComponent;
 }
コード例 #9
0
 public function setAttached(HtmlDoubleElement $toElement = NULL)
 {
     if (isset($toElement)) {
         $toElement->addToProperty("class", "attached");
     }
     return $this->addToProperty("class", "attached");
 }
コード例 #10
0
 public function __construct($identifier, $tagName = "div")
 {
     parent::__construct($identifier, $tagName);
     $this->content = array();
 }