Balance
  • Namespace
  • Class
  • Tree

Namespaces

  • Balance
    • Db
      • TableGateway
    • Form
      • Element
      • Search
    • InputFilter
      • Search
    • Model
      • Persistence
        • Db
    • Mvc
      • Controller
    • Posting
    • Stdlib
      • Hydrator
        • Strategy
    • View
      • Table

Classes

  • Balance\Db\TableGateway\AbstractTableGatewayFactory
  • Balance\Form\Accounts
  • Balance\Form\Element\Boolean
  • Balance\Form\Element\Currency
  • Balance\Form\Element\DateTime
  • Balance\Form\Element\Select
  • Balance\Form\Postings
  • Balance\Form\Search\Accounts
  • Balance\Form\Search\Balance
  • Balance\Form\Search\Postings
  • Balance\InputFilter\Accounts
  • Balance\InputFilter\Postings
  • Balance\InputFilter\Search\Accounts
  • Balance\InputFilter\Search\Balance
  • Balance\InputFilter\Search\Postings
  • Balance\Model\AbstractModelFactory
  • Balance\Model\AccountType
  • Balance\Model\Balance
  • Balance\Model\BooleanType
  • Balance\Model\EntryType
  • Balance\Model\Model
  • Balance\Model\Persistence\Db\Accounts
  • Balance\Model\Persistence\Db\Balance
  • Balance\Model\Persistence\Db\Postings
  • Balance\Mvc\Controller\AbstractControllerFactory
  • Balance\Mvc\Controller\Accounts
  • Balance\Mvc\Controller\Configs
  • Balance\Mvc\Controller\Home
  • Balance\Mvc\Controller\Postings
  • Balance\Posting\Checker
  • Balance\Stdlib\Hydrator\Strategy\Datetime
  • Balance\View\Table\Table

Interfaces

  • Balance\Model\Persistence\PersistenceInterface
  • Balance\Model\Persistence\ValueOptionsInterface
  • Balance\Mvc\Controller\ModelAwareInterface
  • Balance\Mvc\Controller\RedirectRouteNameAwareInterface

Traits

  • Balance\Mvc\Controller\EditActionTrait
  • Balance\Mvc\Controller\IndexActionTrait
  • Balance\Mvc\Controller\ModelAwareTrait
  • Balance\Mvc\Controller\RedirectRouteNameAwareTrait
  • Balance\Mvc\Controller\RemoveActionTrait

Exceptions

  • Balance\Form\FormException
  • Balance\InputFilter\InputFilterException
  • Balance\Model\ModelException
  1 <?php
  2 
  3 namespace Balance\View\Table;
  4 
  5 use Zend\Form\Form;
  6 use Zend\Stdlib\Hydrator\HydratorInterface;
  7 
  8 /**
  9  * Tabela para Renderização de Elementos em Visualização
 10  */
 11 class Table
 12 {
 13     /**
 14      * Formulário
 15      * @type Form
 16      */
 17     protected $form = null;
 18 
 19     /**
 20      * Título da Tabela
 21      * @type string
 22      */
 23     protected $title = '';
 24 
 25     /**
 26      * Colunas Configuradas
 27      * @type array[]
 28      */
 29     protected $columns = array();
 30 
 31     /**
 32      * Elementos para Renderização
 33      * @type mixed
 34      */
 35     protected $elements = array();
 36 
 37     /**
 38      * Ações Configuradas
 39      * @type string[][]
 40      */
 41     protected $actions = array();
 42 
 43     /**
 44      * Ações de Elementos Configuradas
 45      * @type string[][]
 46      */
 47     protected $elementActions = array();
 48 
 49     /**
 50      * Hidratador de Linhas
 51      * @type HydratorInterface
 52      */
 53     protected $hydrator;
 54 
 55     /**
 56      * Configurar Formulário
 57      *
 58      * @param  Form  $form Elemento para Configuração
 59      * @return Table Próprio Objeto para Encadeamento
 60      */
 61     public function setForm(Form $form)
 62     {
 63         $this->form = $form;
 64         return $this;
 65     }
 66 
 67     /**
 68      * Apresentar Formulário
 69      *
 70      * @return Form Elemento Solicitado
 71      */
 72     public function getForm()
 73     {
 74         return $this->form;
 75     }
 76 
 77     /**
 78      * Configuração de Título da Tabela
 79      *
 80      * @param  string $title Valor para Configuração
 81      * @return Table  Próprio Objeto para Encadeamento
 82      */
 83     public function setTitle($title)
 84     {
 85         $this->title = $title;
 86         return $this;
 87     }
 88 
 89     /**
 90      * Apresentação de Título da Tabela
 91      *
 92      * @return string Valor Configurado
 93      */
 94     public function getTitle()
 95     {
 96         return $this->title;
 97     }
 98 
 99     /**
100      * Configurar Coluna
101      *
102      * @param  string $identifier Identificador da Coluna
103      * @param  array  $params     Parâmetros para Coluna
104      * @return Table  Próprio Objeto para Encadeamento
105      */
106     public function setColumn($identifier, array $params = array())
107     {
108         $this->columns[$identifier] = $params;
109         return $this;
110     }
111 
112     /**
113      * Apresentação de Colunas
114      *
115      * @return array[] Conjunto de Elementos Solicitados
116      */
117     public function getColumns()
118     {
119         return $this->columns;
120     }
121 
122     /**
123      * Configuração de Elementos
124      *
125      * @param  mixed $elements Conjunto de Elementos
126      * @return Table Próprio Objeto para Encadeamento
127      */
128     public function setElements($elements)
129     {
130         $this->elements = $elements;
131         return $this;
132     }
133 
134     /**
135      * Apresentação de Elementos
136      *
137      * @return mixed Conjunto de Elementos Solicitados
138      */
139     public function getElements()
140     {
141         return $this->elements;
142     }
143 
144     /**
145      * Configurar Ação
146      *
147      * @param  string   $identifier Identificador da Ação
148      * @param  string[] $params     Parâmetros para Captura em Ação
149      * @return Table    Próprio Objeto para Encadeamento
150      */
151     public function setAction($identifier, array $params)
152     {
153         $this->actions[$identifier] = $params;
154         return $this;
155     }
156 
157     /**
158      * Apresentação de Ações
159      *
160      * @return string[][] Conjunto de Elementos Solicitados
161      */
162     public function getActions()
163     {
164         return $this->actions;
165     }
166 
167     /**
168      * Configurar Ação de Elemento
169      *
170      * @param  string   $identifier Identificador da Ação
171      * @param  string[] $params     Parâmetros para Captura em Ação
172      * @return Table    Próprio Objeto para Encadeamento
173      */
174     public function setElementAction($identifier, array $params = array())
175     {
176         $this->elementActions[$identifier] = $params;
177         return $this;
178     }
179 
180     /**
181      * Apresentação de Ações de Elemento
182      *
183      * @return string[][] Conjunto de Elementos Solicitados
184      */
185     public function getElementActions()
186     {
187         return $this->elementActions;
188     }
189 
190     /**
191      * Configuração do Hidratador de Linhas
192      *
193      * @param  HydratorInterface $hydrator Elemento para Configuração
194      * @return Table             Próprio Objeto para Encadeamento
195      */
196     public function setHydrator(HydratorInterface $hydrator)
197     {
198         $this->hydrator = $hydrator;
199         return $this;
200     }
201 
202     /**
203      * Apresentação de Hidratador de Linhas
204      *
205      * @return HydratorInterface Elemento Solicitado
206      */
207     public function getHydrator()
208     {
209         return $this->hydrator;
210     }
211 }
212 
Balance API documentation generated by ApiGen