phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
TableElementTrait.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\State
;
6
7
class
TableElementTrait
{
8
9
abstract
public
function
addState
($state);
10
11
public
function
setPositive
() {
12
return
$this->
addState
(
State::POSITIVE
);
13
}
14
15
public
function
setNegative
() {
16
return
$this->
addState
(
State::NEGATIVE
);
17
}
18
19
public
function
setWarning
() {
20
return
$this->
addState
(
State::WARNING
);
21
}
22
23
public
function
setError
() {
24
return
$this->
addState
(
State::ERROR
);
25
}
26
27
public
function
setDisabled
($disable=
true
) {
28
if
($disable)
29
$this->
addState
(
State::DISABLED
);
30
return
$this;
31
}
32
}
Ajax\semantic\html\base\constants\State
Definition
State.php:8
Ajax\semantic\html\base\constants\State\POSITIVE
const POSITIVE
Definition
State.php:9
Ajax\semantic\html\base\constants\State\DISABLED
const DISABLED
Definition
State.php:9
Ajax\semantic\html\base\constants\State\ERROR
const ERROR
Definition
State.php:9
Ajax\semantic\html\base\constants\State\NEGATIVE
const NEGATIVE
Definition
State.php:9
Ajax\semantic\html\base\constants\State\WARNING
const WARNING
Definition
State.php:9
Ajax\semantic\html\base\traits\TableElementTrait
Definition
TableElementTrait.php:7
Ajax\semantic\html\base\traits\TableElementTrait\addState
addState($state)
Ajax\semantic\html\base\traits\TableElementTrait\setWarning
setWarning()
Definition
TableElementTrait.php:19
Ajax\semantic\html\base\traits\TableElementTrait\setPositive
setPositive()
Definition
TableElementTrait.php:11
Ajax\semantic\html\base\traits\TableElementTrait\setDisabled
setDisabled($disable=true)
Definition
TableElementTrait.php:27
Ajax\semantic\html\base\traits\TableElementTrait\setError
setError()
Definition
TableElementTrait.php:23
Ajax\semantic\html\base\traits\TableElementTrait\setNegative
setNegative()
Definition
TableElementTrait.php:15
Ajax\semantic\html\base\traits
Definition
AttachedTrait.php:3
Ajax
semantic
html
base
traits
TableElementTrait.php
Generated on Sun Dec 10 2023 16:16:04 for
phpMv-UI
by
doxygen
1.9.8