phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
AttachedTrait.php
Go to the documentation of this file.
1 <?php
2 
4 
8 
9 trait AttachedTrait {
10  abstract public function addToPropertyCtrl($name, $value, $typeCtrl);
16  public function setAttachment(HtmlDoubleElement $toElement=NULL, $side=Side::BOTH) {
17  if (isset($toElement) && \method_exists($toElement, "setAttached")) {
18  $toElement->setAttached(true);
19  }
20  return $this->addToPropertyCtrl("class", $side . " attached", Side::getConstantValues("attached"));
21  }
22 }
setAttachment(HtmlDoubleElement $toElement=NULL, $side=Side::BOTH)
static getConstantValues($postFix="", $prefixBefore=false)
Definition: BaseEnum.php:29
addToPropertyCtrl($name, $value, $typeCtrl)