/**
  * コンストラクター
  *
  * @access	public
  */
 function Mobile_Action()
 {
     $this->_container =& DIContainerFactory::getContainer();
     $this->_db =& $this->_container->getComponent("DbObject");
     $this->_modulesView =& $this->_container->getComponent("modulesView");
     $this->_session =& $this->_container->getComponent("Session");
     $this->_mobile_obj = $this->_modulesView->getModuleByDirname("mobile");
 }
Example #2
0
 /**
  * ブロックタイトルの取得 add by AllCreator 2009.02.07
  * 携帯の第2メニュー部分、ブロック単位にする
  *
  * @access  private
  */
 function _callbackBlockByPage(&$recordSet)
 {
     $result = array();
     $i = 0;
     $this->_session->setParameter('mobileDisplayTextHtml', _OFF);
     $isSmartphone = $this->_session->getParameter('_smartphone_flag');
     while ($row = $recordSet->fetchRow()) {
         if (!is_null($row['display_position']) && $row['display_position'] != _DISPLAY_POSITION_CENTER) {
             continue;
         }
         if (!is_null($row['display_position'])) {
             $pathList = explode("_", $row["mobile_action_name"]);
             $row["dir_name"] = $pathList[0];
             $row["module_name"] = $this->_modulesView->loadModuleName($row["dir_name"]);
         }
         if (!$isSmartphone && !empty($row['module_id']) && empty($row['block_name']) && !empty($row['content'])) {
             $this->_session->setParameter('mobileDisplayTextHtml', _ON);
         }
         $result[$row['parent_id']][$row['block_id']] = $row;
     }
     return $result;
 }