src/Application.php
public function __tocsv($structureId = null){

        // Create pager for material collection
        $pager = new Pager(0);

        // Get collection
        $collection = new $this->collectionClass($this, new dbQuery(), $pager);

        // Set navigation
        if (isset(static::$navigation)) {
            $collection = $collection->navigation(static::$navigation);
        } else {
            $collection = $collection->navigation(array($structureId));
        }
        $collection->fill();

        $this->tocsv($collection);
    }
public function __tocsv($structureId = null){

        // Create pager for material collection
        $pager = new Pager(0);

        // Get collection
        $collection = new $this->collectionClass($this, new dbQuery(), $pager);

        // Set navigation
        if (isset(static::$navigation)) {
            $collection = $collection->navigation(static::$navigation);
        } else {
            $collection = $collection->navigation(array($structureId));
        }
        $collection->fill();

        $this->tocsv($collection);
    }
public function __tocsv ( $ structureId = null ) { // Create pager for material collection $ pager = new Pager ( 0 ) ; // Get collection $ collection = new $ this -> collectionClass ( $ this , new dbQuery ( ) , $ pager ) ; // Set navigation if ( isset ( static :: $ navigation ) ) { $ collection = $ collection -> navigation ( static :: $ navigation ) ; } else { $ collection = $ collection -> navigation ( array ( $ structureId ) ) ; } $ collection -> fill ( ) ; $ this -> tocsv ( $ collection ) ; }
Get current materials in csv format
@param Int $structureId if not set navigation id on application
then use default collection with passed id of structure
Get current materials in csv format