v1.0.0
English

Cell.php

system/View/Cell.php
1 class 7 methods

class Cell

Class Cell A simple class that can call any other class that can be loaded, and echo out it's result. Intended for displaying small blocks of content within views that can be managed by other libraries and not require they are loaded within controller. Used with the helper function, it's use will look like: viewCell('\Some\Class::method', 'limit=5 sort=asc', 60, 'cache-name'); Parameters are matched up with the callback method's arguments of the same name: class Class { function method($limit, $sort) } Alternatively, the params will be passed into the callback method as a simple array if matching params are not found. class Class { function method(array $params=null) }
__construct (CacheInterface $cache) public
render (string $library, $params = null, int $ttl = 0, ?string $cacheName = null) public
prepareParams ($params) public
determineClass (string $library) protected
renderCell (BaseCell $instance, string $method, array $params) protected
getMethodParams (BaseCell $instance, string $method, array $params) private
renderSimpleClass ($instance, string $method, array $params, string $class) protected
phpDG v1.0.0 Cell.php 662 files 498 classes 763 fn
Generated