phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
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
class
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\common\BaseEnum\getConstantValues
static getConstantValues($postFix="", $prefixBefore=false)
Definition
BaseEnum.php:29
Ajax\common\html\HtmlDoubleElement
Definition
HtmlDoubleElement.php:8
Ajax\semantic\html\base\HtmlSemDoubleElement
Base class for Semantic double elements.
Definition
HtmlSemDoubleElement.php:23
Ajax\semantic\html\base\constants\Side
Definition
Side.php:7
Ajax\semantic\html\base\constants\Side\BOTH
const BOTH
Definition
Side.php:8
Ajax\semantic\html\base\traits\AttachedTrait
Definition
AttachedTrait.php:9
Ajax\semantic\html\base\traits\AttachedTrait\setAttachment
setAttachment(HtmlDoubleElement $toElement=NULL, $side=Side::BOTH)
Definition
AttachedTrait.php:16
Ajax\semantic\html\base\traits\AttachedTrait\addToPropertyCtrl
addToPropertyCtrl($name, $value, $typeCtrl)
Ajax\semantic\html\base\traits
Definition
AttachedTrait.php:3
Ajax
semantic
html
base
traits
AttachedTrait.php
Generated on Sun Dec 10 2023 16:16:04 for
phpMv-UI
by
doxygen
1.9.8