コード例 #1
0
ファイル: common.php プロジェクト: LeeGlendenning/formulize
 */
defined("ICMS_ROOT_PATH") or die("ICMS root path not defined");
if (!defined("CONTENT_DIRNAME")) {
    define("CONTENT_DIRNAME", $modversion["dirname"] = basename(dirname(dirname(__FILE__))));
}
if (!defined("CONTENT_URL")) {
    define("CONTENT_URL", ICMS_URL . "/modules/" . CONTENT_DIRNAME . "/");
}
if (!defined("CONTENT_ROOT_PATH")) {
    define("CONTENT_ROOT_PATH", ICMS_ROOT_PATH . "/modules/" . CONTENT_DIRNAME . "/");
}
if (!defined("CONTENT_IMAGES_URL")) {
    define("CONTENT_IMAGES_URL", CONTENT_URL . "images/");
}
if (!defined("CONTENT_ADMIN_URL")) {
    define("CONTENT_ADMIN_URL", CONTENT_URL . "admin/");
}
// Include the common language file of the module
icms_loadLanguageFile("content", "common");
// Creating the module object to make it available throughout the module
$contentModule = icms_getModuleInfo(CONTENT_DIRNAME);
if (is_object($contentModule)) {
    $content_moduleName = $contentModule->getVar("name");
}
// Find if the user is admin of the module and make this info available throughout the module
$content_isAdmin = icms_userIsAdmin(CONTENT_DIRNAME);
// Creating the module config array to make it available throughout the module
$contentConfig = icms_getModuleConfig(CONTENT_DIRNAME);
// creating the icmsPersistableRegistry to make it available throughout the module
$icmsPersistableRegistry = icms_ipf_registry_Handler::getInstance();
コード例 #2
0
ファイル: Field.php プロジェクト: LeeGlendenning/formulize
 /**
  * get category title for table display
  *
  * @return str category title
  */
 public function getCatid()
 {
     $icmsPersistableRegistry = icms_ipf_registry_Handler::getInstance();
     $category = $icmsPersistableRegistry->getSingleObject('category', $this->getVar('catid'), basename(dirname(dirname(__FILE__))));
     return $category->getVar('cat_title');
 }
コード例 #3
0
 public function __construct()
 {
     parent::getInstance();
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_ipf_registry_Handler', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }