phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
SemanticWidgetsTrait.php
Go to the documentation of this file.
1
<?php
2
namespace
Ajax\semantic\traits
;
3
4
use
Ajax\semantic\widgets\datatable\DataTable
;
5
use
Ajax\semantic\widgets\dataelement\DataElement
;
6
use
Ajax\semantic\widgets\dataform\DataForm
;
7
use
Ajax\semantic\widgets\business\user\FormLogin
;
8
use
Ajax\semantic\widgets\datatable\JsonDataTable
;
9
use
Ajax\semantic\widgets\business\user\FormAccount
;
10
use
Ajax\common\html\BaseHtml
;
11
12
class
SemanticWidgetsTrait
{
13
14
abstract
public
function
addHtmlComponent
(
BaseHtml
$htmlComponent);
15
22
public
function
dataTable
($identifier,$model, $instances=
null
){
23
return
$this->
addHtmlComponent
(
new
DataTable
($identifier,$model,$instances));
24
}
25
32
public
function
jsonDataTable
($identifier,$model, $instances=
null
){
33
return
$this->
addHtmlComponent
(
new
JsonDataTable
($identifier,$model,$instances));
34
}
35
41
public
function
dataElement
($identifier, $instance=
null
){
42
return
$this->
addHtmlComponent
(
new
DataElement
($identifier,$instance));
43
}
44
50
public
function
dataForm
($identifier, $instance){
51
return
$this->
addHtmlComponent
(
new
DataForm
($identifier,$instance));
52
}
53
59
public
function
defaultLogin
($identifier,$instance=
null
){
60
return
$this->
addHtmlComponent
(
FormLogin::regular
($identifier,$instance));
61
}
62
68
public
function
smallLogin
($identifier,$instance=
null
){
69
return
$this->
addHtmlComponent
(
FormLogin::small
($identifier,$instance));
70
}
71
77
public
function
segmentedLogin
($identifier,$instance=
null
){
78
return
$this->
addHtmlComponent
(
FormLogin::attachedSegment
($identifier,$instance));
79
}
80
86
public
function
defaultAccount
($identifier,$instance=
null
){
87
return
$this->
addHtmlComponent
(
FormAccount::regular
($identifier,$instance));
88
}
89
}
Ajax\common\html\BaseHtml
BaseHtml for HTML components.
Definition
BaseHtml.php:17
Ajax\semantic\traits\SemanticWidgetsTrait
Definition
SemanticWidgetsTrait.php:12
Ajax\semantic\traits\SemanticWidgetsTrait\jsonDataTable
jsonDataTable($identifier, $model, $instances=null)
Definition
SemanticWidgetsTrait.php:32
Ajax\semantic\traits\SemanticWidgetsTrait\smallLogin
smallLogin($identifier, $instance=null)
Definition
SemanticWidgetsTrait.php:68
Ajax\semantic\traits\SemanticWidgetsTrait\defaultLogin
defaultLogin($identifier, $instance=null)
Definition
SemanticWidgetsTrait.php:59
Ajax\semantic\traits\SemanticWidgetsTrait\dataElement
dataElement($identifier, $instance=null)
Definition
SemanticWidgetsTrait.php:41
Ajax\semantic\traits\SemanticWidgetsTrait\addHtmlComponent
addHtmlComponent(BaseHtml $htmlComponent)
Ajax\semantic\traits\SemanticWidgetsTrait\defaultAccount
defaultAccount($identifier, $instance=null)
Definition
SemanticWidgetsTrait.php:86
Ajax\semantic\traits\SemanticWidgetsTrait\segmentedLogin
segmentedLogin($identifier, $instance=null)
Definition
SemanticWidgetsTrait.php:77
Ajax\semantic\traits\SemanticWidgetsTrait\dataTable
dataTable($identifier, $model, $instances=null)
Definition
SemanticWidgetsTrait.php:22
Ajax\semantic\traits\SemanticWidgetsTrait\dataForm
dataForm($identifier, $instance)
Definition
SemanticWidgetsTrait.php:50
Ajax\semantic\widgets\business\user\FormAccount
Form for user Account.
Definition
FormAccount.php:8
Ajax\semantic\widgets\business\user\FormAccount\regular
static regular($identifier, $modelInstance=null)
Definition
FormAccount.php:21
Ajax\semantic\widgets\business\user\FormLogin
Form for user login.
Definition
FormLogin.php:8
Ajax\semantic\widgets\business\user\FormLogin\small
static small($identifier, $modelInstance=null)
Definition
FormLogin.php:41
Ajax\semantic\widgets\business\user\FormLogin\attachedSegment
static attachedSegment($identifier, $modelInstance=null)
Definition
FormLogin.php:52
Ajax\semantic\widgets\business\user\FormLogin\regular
static regular($identifier, $modelInstance=null)
Definition
FormLogin.php:21
Ajax\semantic\widgets\dataelement\DataElement
DataElement widget for displaying an instance of model.
Definition
DataElement.php:20
Ajax\semantic\widgets\dataform\DataForm
Definition
DataForm.php:20
Ajax\semantic\widgets\datatable\DataTable
DataTable widget for displaying list of objects.
Definition
DataTable.php:27
Ajax\semantic\widgets\datatable\JsonDataTable
Definition
JsonDataTable.php:16
Ajax\semantic\traits
Definition
SemanticComponentsTrait.php:3
Ajax
semantic
traits
SemanticWidgetsTrait.php
Generated on Sun Dec 10 2023 16:16:09 for
phpMv-UI
by
doxygen
1.9.8