PHP Class Gc\View\Helper\Documents

Inheritance: extends Zend\View\Helper\AbstractHelper
Exibir arquivo Open project: gotcms/gotcms Class Usage Examples

Public Methods

Method Description
__invoke ( mixed $data = null ) : array Returns documents $data can be mixed if data is an array, return all documents if data is numeric, return all documents with parent_id equal to $data if data is string, return all documents with parent's url key equal to $data

Method Details

__invoke() public method

Returns documents $data can be mixed if data is an array, return all documents if data is numeric, return all documents with parent_id equal to $data if data is string, return all documents with parent's url key equal to $data
public __invoke ( mixed $data = null ) : array
$data mixed Data
return array \Gc\Document\Model