Example #1
0
 /**
  * This function is used to check whether a menu is activated or inactivated.
  * @param Integer $objectId = id of the menu item.
  * @return string  Returns true if isactive = 1 and false if isactive != 1
  */
 public static function _isactivemodule($objectId)
 {
     $menuID = $objectId;
     $menu_model = new Default_Model_Menu();
     $menuobj = $menu_model->checkmenustatus($menuID);
     if ($menuobj['isactive'] == '1') {
         return true;
     } else {
         return false;
     }
 }