/** Create the set of panels to use. * @access private */ function _add_panels() { parent::_add_panels(); $panel =& $this->panel_at('folder'); $panel->rows = 10; $panel->columns = 2; }
/** * Create the set of panels to use. * @access private */ protected function _add_panels() { parent::_add_panels(); $this->add_panels_after('project'); $branch_query = $this->login->all_branch_query(); $class_name = $this->app->final_class_name('BRANCH_PANEL', ''); $panel = new $class_name($this, $branch_query); $this->add_panel($panel); $release_query = $this->login->all_release_query(); $class_name = $this->app->final_class_name('RELEASE_PANEL', ''); $panel = new $class_name($this, $release_query); $this->add_panel($panel); $this->add_panels_after('job'); $job_panel_class_name = $this->app->final_class_name('ENTRY_PANEL', '', 'job'); $job_type_info = $this->app->type_info_for('JOB', 'projects/obj/job.php'); $job_query = $this->login->all_entry_query(); $job_query->set_type('job'); $in_progress_job_query = clone $job_query; $in_progress_job_query->restrict("status = 3"); $panel = new $job_panel_class_name($this, $in_progress_job_query, $job_type_info); $panel->id = 'in_progress_jobs'; $panel->title = 'Jobs in progress'; $this->add_panel($panel); $scheduled_job_query = clone $job_query; restrict_to_open($scheduled_job_query); restrict_to_scheduled($scheduled_job_query); $panel = new $job_panel_class_name($this, $scheduled_job_query, $job_type_info); $panel->id = 'scheduled_jobs'; $panel->title = 'Scheduled jobs'; $panel->show_folder = true; $this->add_panel($panel); $unscheduled_job_query = clone $job_query; restrict_to_open($unscheduled_job_query); restrict_to_unscheduled($unscheduled_job_query); $panel = new $job_panel_class_name($this, $unscheduled_job_query, $job_type_info); $panel->id = 'unscheduled_jobs'; $panel->title = 'Unscheduled jobs'; $panel->show_folder = true; $this->add_panel($panel); $open_job_query = clone $job_query; $open_job_query->restrict("closer_id = 0"); restrict_to_open($open_job_query); $panel = new $job_panel_class_name($this, $open_job_query, $job_type_info); $panel->id = 'open_jobs'; $panel->title = 'Open jobs'; $this->add_panel($panel); $closed_job_query = clone $job_query; restrict_to_closed($closed_job_query); $panel = new $job_panel_class_name($this, $closed_job_query, $job_type_info); $panel->id = 'closed_jobs'; $panel->title = 'Closed jobs'; $this->add_panel($panel); $unassigned_job_query = clone $job_query; $unassigned_job_query->restrict("assignee_id = 0"); $panel = new $job_panel_class_name($this, $unassigned_job_query, $job_type_info); $panel->id = 'unassigned_jobs'; $panel->title = 'Unassigned jobs'; $this->add_panel($panel); $this->move_panel_to('in_progress_jobs', 0, Panel_selection); $this->move_panel_to('scheduled_jobs', 1, Panel_selection); $this->move_panel_to('open_jobs', 2, Panel_selection); $this->move_panel_to('unassigned_jobs', 3, Panel_selection); $this->move_panel_to('job', 4, Panel_selection); $this->move_panel_to('change', 5, Panel_selection); }
/** * Create the set of panels to use. * @access private */ protected function _add_panels() { parent::_add_panels(); _configure_album_panels($this); }