| 1 | <?php |
||
| 10 | class Session extends Element |
||
| 11 | { |
||
| 12 | use CollectionTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Session the owner session. |
||
| 16 | */ |
||
| 17 | public $owner; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string the provider name. |
||
| 21 | */ |
||
| 22 | public $provider; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var boolean whether this session will be executed. Defaults to true. |
||
| 26 | */ |
||
| 27 | public $visible = true; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var integer the rows count. |
||
| 31 | */ |
||
| 32 | public $rows; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var Session[] |
||
| 36 | */ |
||
| 37 | public $sessions = []; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var array column configuration. Each array element represents the configuration |
||
| 41 | * for one particular column. For example, |
||
| 42 | * |
||
| 43 | * ```php |
||
| 44 | * [ |
||
| 45 | * ['name' => 'id', 'align' => 'left', 'size' => 10, 'charComplete' => 0], |
||
| 46 | * ['name' => 'firstName', 'dictionary' => 'text'] |
||
| 47 | * ['name' => 'birthDate', 'expression' => 'return date('Y-m-d');'] |
||
| 48 | * ] |
||
| 49 | * ``` |
||
| 50 | */ |
||
| 51 | public $columns = []; |
||
| 52 | |||
| 53 | |||
| 54 | /** |
||
| 55 | * Initializes the session. |
||
| 56 | * This method will instantiate [[columns]] and [[sessions]] objects. |
||
| 57 | */ |
||
| 58 | 8 | public function init() |
|
| 64 | } |
||
| 65 |