dmBridge PHP API
DMCPMenuSection.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 # Copyright © 2009, 2010 Board of Regents of the Nevada System of Higher
00005 # Education, on behalf of the University of Nevada, Las Vegas
00006 #
00007 
00014 class DMCPMenuSection {
00015 
00017    private $is_from_module;
00019    private $menu_items = array();
00021    private $title;
00022 
00026    public function __construct($title) {
00027       $this->title = $title;
00028    }
00029 
00033    public function isFromModule() {
00034       return $this->is_from_module;
00035    }
00036 
00042    public function setFromModule($bool) {
00043       $this->is_from_module = ($bool);
00044    }
00045 
00049    public function addMenuItem(DMCPMenuItem $item) {
00050       $this->menu_items[] = $item;
00051    }
00052 
00056    public function getMenuItems() {
00057       return $this->menu_items;
00058    }
00059 
00063    public function getTitle() {
00064       return $this->title;
00065    }
00066 
00070    public function setTitle($title) {
00071       $this->title = $title;
00072    }
00073 
00074 }
 All Data Structures Functions Variables