phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
TextAlignmentTrait.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\TextAlignment
;
6
7
trait
TextAlignmentTrait
{
8
9
abstract
public
function
addToPropertyCtrl
($name, $value, $typeCtrl);
10
15
public
function
setTextAlignment
($value=
TextAlignment::LEFT
){
16
return
$this->
addToPropertyCtrl
(
"class"
, $value,
TextAlignment::getConstants
());
17
}
18
19
public
function
textCenterAligned
(){
20
return
$this->
setTextAlignment
(
TextAlignment::CENTER
);
21
}
22
23
public
function
textJustified
(){
24
return
$this->
setTextAlignment
(
TextAlignment::JUSTIFIED
);
25
}
26
27
public
function
textRightAligned
(){
28
return
$this->
setTextAlignment
(
TextAlignment::RIGHT
);
29
}
30
31
public
function
textLeftAligned
(){
32
return
$this->
setTextAlignment
();
33
}
34
}
Ajax\semantic\html\base\traits\textCenterAligned
textCenterAligned()
Definition:
TextAlignmentTrait.php:19
Ajax\semantic\html\base\traits\setTextAlignment
setTextAlignment($value=TextAlignment::LEFT)
Definition:
TextAlignmentTrait.php:15
Ajax\common\BaseEnum\getConstants
static getConstants()
Definition:
BaseEnum.php:17
Ajax\semantic\html\base\traits\textRightAligned
textRightAligned()
Definition:
TextAlignmentTrait.php:27
Ajax\semantic\html\base\constants\TextAlignment\RIGHT
const RIGHT
Definition:
TextAlignment.php:8
Ajax\semantic\html\base\traits\textLeftAligned
textLeftAligned()
Definition:
TextAlignmentTrait.php:31
Ajax\semantic\html\base\traits\textJustified
textJustified()
Definition:
TextAlignmentTrait.php:23
TextAlignmentTrait
Ajax\semantic\html\base\traits
Definition:
AttachedTrait.php:3
Ajax\semantic\html\base\traits\addToPropertyCtrl
addToPropertyCtrl($name, $value, $typeCtrl)
Definition:
BaseHtmlPropertiesTrait.php:87
Ajax\semantic\html\base\constants\TextAlignment\CENTER
const CENTER
Definition:
TextAlignment.php:8
Ajax\semantic\html\base\constants\TextAlignment\LEFT
const LEFT
Definition:
TextAlignment.php:8
TextAlignment
Ajax\semantic\html\base\constants\TextAlignment\JUSTIFIED
const JUSTIFIED
Definition:
TextAlignment.php:8
Ajax
semantic
html
base
traits
TextAlignmentTrait.php
Generated on Thu Sep 19 2024 23:26:03 for
phpMv-UI
by
doxygen
1.8.13