Exemplo n.º 1
0
 /**
  * Returns array of schedules for this article
  *
  * @return	array
  */
 public function get_schedules()
 {
     static $schedules;
     if (!isset($schedules)) {
         require_once VIVVO_FS_ROOT . 'lib/vivvo/core/ArticlesSchedule.class.php';
         $schedule_list = new ArticlesSchedule_list($this->get_site_manager());
         if (($schedules = $schedule_list->get_schedules_by_article_id($this->id)) === false) {
             $schedules = array();
         }
     }
     return $schedules;
 }