當前位置: 首頁>>代碼示例>>PHP>>正文


PHP XoopsBlock::get方法代碼示例

本文整理匯總了PHP中XoopsBlock::get方法的典型用法代碼示例。如果您正苦於以下問題:PHP XoopsBlock::get方法的具體用法?PHP XoopsBlock::get怎麽用?PHP XoopsBlock::get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在XoopsBlock的用法示例。


在下文中一共展示了XoopsBlock::get方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getBlock

 /**
  * get block.
  * 
  * @param Legacy_AbstractBlockProcedure &$obj
  * @param XoopsBlock                    $block
  */
 public static function getBlock(&$obj, $block)
 {
     $moduleHandler =& xoops_gethandler('module');
     $module =& $moduleHandler->get($block->get('mid'));
     if (is_object($module) && $module->getInfo('trust_dirname') == COSMOAPI_TRUST_DIRNAME) {
         require_once XOOPS_TRUST_PATH . '/modules/' . COSMOAPI_TRUST_DIRNAME . '/blocks/' . $block->get('func_file');
         $className = ucfirst(COSMOAPI_TRUST_DIRNAME) . '_' . substr($block->get('show_func'), 4);
         $obj = new $className($block);
     }
 }
開發者ID:neuroinformatics,項目名稱:xcl-module-cosmoapi,代碼行數:16,代碼來源:AssetPreload.class.php

示例2: getBlock

 /**
  * getBlock
  * 
  * @param   Legacy_AbstractBlockProcedure  &$obj
  * @param   XoopsBlock  $block
  * 
  * @return  void
  **/
 public static function getBlock(&$obj, $block)
 {
     $moduleHandler =& Xcforum_Utils::getXoopsHandler('module');
     $module =& $moduleHandler->get($block->get('mid'));
     if (is_object($module) && $module->getInfo('trust_dirname') == 'xcforum') {
         require_once XCFORUM_TRUST_PATH . '/blocks/' . $block->get('func_file');
         $className = 'Xcforum_' . substr($block->get('show_func'), 4);
         $obj = new $className($block);
     }
 }
開發者ID:naao,項目名稱:xcforum_proto,代碼行數:18,代碼來源:AssetPreload.class.php

示例3: CriteriaCompo

 /**
  * @private
  * Uninstalls the block template data specified by $block of $module.
  * @param XoopsBlock  $block
  * @param XoopsModule $module This object is must the module which has $block.
  * @param string      $tplset A name of the template set. If this is null, uninstalls
  *                            all templates of any template-sets. 
  * @param $log
  * @remarks
  *     This method users template handlers of the kernel. But, if they are hooked,
  *     they may not do something. So, abstraction mechanism is possible enough.
  */
 function _uninstallBlockTemplate(&$block, &$module, $tplset, &$log)
 {
     $handler =& xoops_gethandler('tplfile');
     $criteria = new CriteriaCompo();
     $criteria->add(new Criteria('tpl_refid', $block->get('bid')));
     $criteria->add(new Criteria('tpl_file', $block->get('template')));
     $criteria->add(new Criteria('tpl_module', $module->get('dirname')));
     $criteria->add(new Criteria('tpl_type', 'block'));
     if ($tplset != null) {
         // See 'FIXME'
         $criteria->add(new Criteria('tpl_tplset', $tplset));
     }
     $handler->deleteAll($criteria);
 }
開發者ID:nunoluciano,項目名稱:uxcl,代碼行數:26,代碼來源:ModuleInstallUtils.class.php

示例4: getCacheFilePath

 /**
  * Gets a file path of a cache file for module contents.
  * @param Legacy_BlockCacheInformation $cacheInfo
  * @return string
  */
 function getCacheFilePath()
 {
     $filepath = null;
     $this->mGetCacheFilePath->call(new XCube_Ref($filepath), $this);
     if (!$filepath) {
         $id = md5(XOOPS_SALT . '(' . implode('_', $this->mIdentityArr) . ')' . implode('_', $this->mGroupArr));
         $filepath = $this->getCacheFileBase($this->mBlock->get('bid'), $id);
     }
     return $filepath;
 }
開發者ID:nobunobuta,項目名稱:xoopscube,代碼行數:15,代碼來源:Legacy_CacheInformation.class.php

示例5: getWeight

 function getWeight()
 {
     return $this->_mBlock->get('weight');
 }
開發者ID:nouphet,項目名稱:rata,代碼行數:4,代碼來源:Legacy_BlockProcedure.class.php

示例6: getCacheFilePath

 /**
  * Gets a file path of a cache file for module contents.
  * @param Legacy_BlockCacheInformation $cacheInfo
  * @return string
  */
 function getCacheFilePath()
 {
     $filepath = null;
     $this->mGetCacheFilePath->call(new XCube_Ref($filepath), $this);
     if (!$filepath) {
         $id = md5(XOOPS_SALT . "(" . implode("_", $this->mIdentityArr) . ")" . implode("_", $this->mGroupArr));
         $filepath = XOOPS_CACHE_PATH . "/bid" . $this->mBlock->get('bid') . '_' . $id . ".cache.html";
     }
     return $filepath;
 }
開發者ID:nouphet,項目名稱:rata,代碼行數:15,代碼來源:Legacy_CacheInformation.class.php


注:本文中的XoopsBlock::get方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。