public function __construct(HTMLTags_URL $link_href, $offset, $limit, $row_count) { #echo "Start: Database_PreviousNextUL::__construct()\n"; parent::__construct(); $this->set_attribute_str('class', 'inline_list'); #$this->table = $table; $this->link_href = $link_href; if ($offset < 0) { throw new Exception('The offset for a Database_PreviousNextUL cannot be negative!'); } $this->offset = $offset; if ($limit < 1) { throw new Exception('The limit for a Database_PreviousNextUL must be at least 1!'); } $this->limit = $limit; if ($this->offset % $this->limit > 0) { throw new Exception('The offset should be a multiple of the limit in a Database_PreviousNextUL!'); } #if ($row_count < 1) { # throw new Exception( # 'The maximum number of links either side of the current page must be at least one in a Database_PreviousNextUL!' # ); #} $this->row_count = $row_count; #echo "End: Database_PreviousNextUL::__construct()\n"; }
public function __construct(Admin_NavigationXMLFile $anxf, $admin_user_level) { parent::__construct(NULL); $this->set_attribute_str('id', 'site-map'); $this->anxf = $anxf; $this->admin_user_level = $admin_user_level; }
public function __construct(HaddockProjectOrganisation_ProjectDirectory $project_directory) { parent::__construct(); $m_w_a_ss = $project_directory->get_modules_with_admin_sections(); foreach ($m_w_a_ss as $m_w_a_s) { $module_li = new HTMLTags_LI(); $module_a = new HTMLTags_A(); //$module_href = new HTMLTags_URL(); #if ( # is_a( # $m_w_a_s, # 'HaddockProjectOrganisation_ProjectSpecificDirectory' # ) #) { # $module_name = 'project-specific'; #} else { # $module_name_l_o_ws = $m_w_a_s->get_module_name_as_l_o_w(); # $module_name = $module_name_l_o_ws->get_words_as_delimited_lc_string('-'); #} //$module_name = $m_w_a_s->get_admin_section_directory_name(); // //#$module_href->set_file('/admin/' . $module_name . '/home.html'); //$module_href->set_file('/admin/hc/' . $module_name . '/home.html'); $module_href = $m_w_a_s->get_admin_section_home_page_href(); $module_a->set_href($module_href); $module_config_file = $m_w_a_s->get_module_config_file(); $module_span = new HTMLTags_Span($module_config_file->get_admin_section_title()); $module_a->append_tag_to_content($module_span); $module_li->append_tag_to_content($module_a); $this->add_li($module_li); } }
public function __construct() { parent::__construct(); $dramas = Oedipus_DramaEditorHelper::get_all_dramas(); $this->set_attribute_str('class', 'all-dramas'); foreach ($dramas as $drama) { $drama_li = $this->get_drama_li($drama); $this->append_tag_to_content($drama_li); } }
public function __construct(Oedipus_Frame $frame, $edit_frame_option = TRUE) { parent::__construct(); $this->frame = $frame; $this->set_attribute_str('class', 'frame-options'); if ($edit_frame_option) { // Link to edit the frame $edit_li = $this->get_edit_li(); $this->append_tag_to_content($edit_li); } // Link to png_image the frame $png_image_li = $this->get_png_image_li(); $this->append_tag_to_content($png_image_li); }
public function __construct() { parent::__construct(); $this->set_attribute_str('class', 'frame-options'); }
public function __construct() { parent::__construct(); $this->set_attribute_str('class', 'toolbar'); }