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
3
namespace
Ajax\semantic\html\base\traits
;
4
5
use
Ajax\semantic\html\base\constants\Side
;
6
use
Ajax\semantic\html\base\HtmlSemDoubleElement
;
7
use
Ajax\common\html\HtmlDoubleElement
;
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
}
Ajax\semantic\html\base\traits\setAttachment
setAttachment(HtmlDoubleElement $toElement=NULL, $side=Side::BOTH)
Definition:
AttachedTrait.php:16
Side
AttachedTrait
HtmlSemDoubleElement
Ajax\common\BaseEnum\getConstantValues
static getConstantValues($postFix="", $prefixBefore=false)
Definition:
BaseEnum.php:29
Ajax\common\html\HtmlDoubleElement
Definition:
HtmlDoubleElement.php:8
Ajax\semantic\html\base\traits
Definition:
AttachedTrait.php:3
Ajax\semantic\html\base\traits\addToPropertyCtrl
addToPropertyCtrl($name, $value, $typeCtrl)
Definition:
BaseHtmlPropertiesTrait.php:87
HtmlDoubleElement
Ajax\semantic\html\base\constants\Side\BOTH
const BOTH
Definition:
Side.php:8
Ajax
semantic
html
base
traits
AttachedTrait.php
Generated on Thu Sep 19 2024 23:26:03 for
phpMv-UI
by
doxygen
1.8.13