/** @param RECIPE_BOOK &$folder Retrieve recipes from this recipe book. */
 function FOLDER_RECIPE_QUERY(&$folder)
 {
     FOLDER_ENTRY_QUERY::FOLDER_ENTRY_QUERY($folder);
     $this->_order = 'entry.title';
 }
 /**
  * Apply default restrictions and tables.
  */
 public function apply_defaults()
 {
     parent::apply_defaults();
     $this->set_day_field('entry.time_published');
     $this->order_by_recent();
 }
 /**
  * Perform any setup needed on each returned object.
  * @param RELEASE
  * @access private
  */
 protected function _prepare_object($obj)
 {
     parent::_prepare_object($obj);
     $class_name = $this->app->final_class_name('BRANCH', 'projects/obj/branch.php');
     $obj->_branch = new $class_name($this->app);
     $obj->_branch->id = $this->db->f('branch_id');
     $obj->_branch->state = $this->db->f('branch_state');
     $obj->_branch->title = $this->db->f('branch_title');
     $obj->_branch->set_parent_folder($this->_folder);
 }
 /**
  * @param RECIPE_BOOK $folder Retrieve recipes from this recipe book.
  */
 public function __construct($folder)
 {
     parent::__construct($folder);
     $this->_order = 'entry.title';
 }