/** * Default: load all * * @param mixed array('files'=>bool, 'owner' =>bool, ...) * @return abs_collection_item */ function load_secondary($options = null) { is_array($options) && empty($options['files']) or $this->get_files(); is_array($options) && empty($options['owner']) or $this->get_owner(); is_array($options) && empty($options['node_files']) or $this->get_node_files(); is_array($options) && empty($options['node_images']) or $this->get_node_images(); // load other stuff (extrafs) parent::load_secondary($options); }