1 | <?php |
||
18 | class DataElement extends Widget { |
||
19 | protected $_colWidths; |
||
20 | |||
21 | public function __construct($identifier, $modelInstance=NULL) { |
||
26 | |||
27 | public function compile(JsUtils $js=NULL,&$view=NULL){ |
||
46 | |||
47 | /** |
||
48 | * @param HtmlTable $table |
||
49 | */ |
||
50 | protected function _generateContent($table){ |
||
59 | |||
60 | protected function _applyStyleAttributes(HtmlTable $table){ |
||
66 | |||
67 | protected function _getFieldCaption($index){ |
||
70 | |||
71 | protected function _getFieldIdentifier($prefix,$name=""){ |
||
74 | |||
75 | /** |
||
76 | * {@inheritDoc} |
||
77 | * @see \Ajax\common\Widget::getHtmlComponent() |
||
78 | * @return HtmlTable |
||
79 | */ |
||
80 | public function getHtmlComponent() { |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | * @see \Ajax\common\Widget::_setToolbarPosition() |
||
87 | */ |
||
88 | protected function _setToolbarPosition($table, $captions=NULL) { |
||
91 | |||
92 | /** |
||
93 | * The callback function called after the insertion of each row when fromDatabaseObjects is called |
||
94 | * callback function takes the parameters $row : the row inserted and $object: the instance of model used |
||
95 | * @param callable $callback |
||
96 | * @return DataElement |
||
97 | */ |
||
98 | public function onNewRow($callback) { |
||
102 | |||
103 | public function asForm(){ |
||
106 | |||
107 | public function setColCaptionWidth($width){ |
||
111 | |||
112 | public function setColValueWidth($width) { |
||
116 | |||
117 | public function setColWidths($widths){ |
||
121 | } |