• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_ini_option函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_ini_option函数的典型用法代码示例。如果您正苦于以下问题:PHP get_ini_option函数的具体用法?PHP get_ini_option怎么用?PHP get_ini_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_ini_option函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: pre_parse

 function pre_parse()
 {
     $action = array();
     if (!isset($this->attributes['action']) && !isset($this->attributes['shortcut'])) {
         error('ATTRIBUTE_REQUIRED', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__, array('tag' => $this->tag, 'attribute' => 'path or shortcut', 'file' => $this->source_file, 'line' => $this->starting_line_no));
     }
     if (isset($this->attributes['shortcut'])) {
         $action['action'] = get_ini_option('grid_actions.ini', $this->attributes['shortcut'], 'action');
         $action['path'] = get_ini_option('grid_actions.ini', $this->attributes['shortcut'], 'path');
     } else {
         $action['action'] = $this->attributes['action'];
         if (isset($this->attributes['path'])) {
             $action['path'] = $this->attributes['locale_value'];
         }
     }
     if (isset($this->attributes['locale_value'])) {
         $action['locale_value'] = $this->attributes['locale_value'];
     }
     if (isset($this->attributes['locale_file'])) {
         $action['locale_file'] = $this->attributes['locale_file'];
     }
     if (isset($this->attributes['name'])) {
         $action['name'] = $this->attributes['name'];
     }
     $this->parent->register_action($action);
     return PARSER_REQUIRE_PARSING;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:27,代码来源:action.tag.php


示例2: pre_parse

  function pre_parse()
  {
    $action = array();

    if(!isset($this->attributes['action']) && !isset($this->attributes['shortcut']))
    {
      error('ATTRIBUTE_REQUIRED', __FILE__ . ' : ' . __LINE__ . ' : ' .  __FUNCTION__,
      array('tag' => $this->tag,
          'attribute' => 'path or shortcut',
          'file' => $this->source_file,
          'line' => $this->starting_line_no));
    }

    if(isset($this->attributes['shortcut']))
    {
      $action['action'] = get_ini_option('admin_list_actions.ini', $this->attributes['shortcut'], 'action');
      $action['path'] = get_ini_option('admin_list_actions.ini', $this->attributes['shortcut'],  'path');
      unset($this->attributes['shortcut']);
    }
    else
      $action['action'] = $this->attributes['action'];

    foreach($this->attributes as $attr_name => $attr_value)
      $action[$attr_name] = $attr_value;

    $this->parent->register_action($action);

    return PARSER_REQUIRE_PARSING;
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:29,代码来源:action.tag.php


示例3: template

 /**
  * Constructs template
  * 
  * @param string $ name of (source) template file (relative or full path)
  * @access public 
  */
 function template($file, $resolve_path = true)
 {
     $this->file = $file;
     if ($resolve_path) {
         if (!($srcfile = resolve_template_source_file_name($file))) {
             error('template file not found', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__, array('file' => $file));
         }
     } else {
         $srcfile = $file;
     }
     $this->codefile = resolve_template_compiled_file_name($srcfile, TMPL_INCLUDE);
     if (!isset($GLOBALS['template_render'][$this->codefile])) {
         if (get_ini_option('config.ini', 'templates', 'force_compile')) {
             compile_template_file($file, $resolve_path);
         }
         if (!file_exists($this->codefile)) {
             compile_template_file($file, $resolve_path);
         }
         $errorlevel = error_reporting();
         error_reporting($errorlevel & ~E_WARNING);
         $parse_error = (include_once $this->codefile);
         error_reporting($errorlevel);
     }
     $this->render_function = $GLOBALS['template_render'][$this->codefile];
     $func = $GLOBALS['template_construct'][$this->codefile];
     $func($this);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:33,代码来源:template.class.php


示例4: load_system_tags

function load_system_tags()
{
    $path = get_ini_option('compiler.ini', 'tags', 'path');
    foreach ($path as $tagpath) {
        load_tags(LIMB_DIR . 'core/template/tags/' . $tagpath);
    }
}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:template_compiler.inc.php


示例5: perform

 function perform()
 {
     $result = $this->set_publish_status(get_ini_option('doc_flow.ini', 'default', 'unpublished'));
     if ($result !== false) {
         close_popup();
     } else {
         return false;
     }
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:9,代码来源:unpublish_action.class.php


示例6: _get_groups

 function _get_groups()
 {
     if ($this->groups) {
         return $this->groups;
     }
     if (ini_exists('referers_groups.ini')) {
         $this->groups = get_ini_option('referers_groups.ini', 'groups');
     }
     return $this->groups;
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:10,代码来源:stats_referers_except_groups_list_datasource.class.php


示例7: load_project_tags

function load_project_tags()
{
    $path = get_ini_option('config.ini', 'path', 'project_tags');
    if (!$path) {
        return;
    }
    foreach ($path as $tagpath) {
        load_tags(PROJECT_DIR . 'core/template/tags/' . $tagpath);
    }
}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:10,代码来源:template_compiler.inc.php


示例8: template

 /**
  * Constructs template
  * 
  * @param string $ name of (source) template file (relative or full path)
  * @access public 
  */
 function template($file)
 {
     $this->file = $file;
     $srcfile = resolve_template_source_file_name($file, TMPL_INCLUDE);
     $this->codefile = resolve_template_compiled_file_name($srcfile, TMPL_INCLUDE);
     if (!isset($GLOBALS['template_render'][$this->codefile])) {
         if (get_ini_option('config.ini', 'templates', 'force_compile')) {
             compile_template_file($file);
         }
         if (!file_exists($this->codefile)) {
             compile_template_file($file);
         }
         $errorlevel = error_reporting();
         error_reporting($errorlevel & ~E_WARNING);
         $parse_error = (include_once $this->codefile);
         error_reporting($errorlevel);
     }
     $this->render_function = $GLOBALS['template_render'][$this->codefile];
     $func = $GLOBALS['template_construct'][$this->codefile];
     $func($this);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:27,代码来源:template.class.php


示例9: _set_options_from_ini_file

 function _set_options_from_ini_file()
 {
     $ini_file = $this->get_attribute('options_ini_file');
     $this->set_choices(get_ini_option($ini_file . '.ini', 'constants', 'options'));
     if (!$this->get_default_value()) {
         $this->set_default_value(get_ini_option($ini_file . '.ini', 'constants', 'default_option'));
     }
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:options_form_element.class.php


示例10: closedir

                if (substr($tag_file, -8, 8) == '.tag.php') {
                    include_once $tag_dir . '/' . $tag_file;
                }
            }
            closedir($dir);
        }
    }
}
/**
* Create the tag_dictionary global variable
*/
$GLOBALS['tag_dictionary'] =& new tag_dictionary();
/**
* Load some tag files
*/
$path = get_ini_option('compiler.ini', 'tags', 'path');
foreach ($path as $tagpath) {
    if (substr($tagpath, 0, 1) != '/') {
        load_tags(LIMB_DIR . 'core/template/tags/' . $tagpath);
        load_tags(PROJECT_DIR . 'core/template/tags/' . $tagpath);
    } else {
        load_tags($tagpath);
    }
}
/**
* Compiles a template file. Uses the file scheme to location the source,
* instantiates the code_writer and root_compiler_component (as the root) component then
* instantiates the source_file_parser to parse the template.
* Creates the initialize and render functions in the compiled template.
* 
* @see root_compiler_component
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:template_compiler.inc.php


示例11: perform

	function perform()
	{
		$this->set_publish_status(get_ini_option('doc_flow.ini', 'default', 'published'));
		
		return new close_popup_response();
	}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:6,代码来源:publish_action.class.php


示例12: perform

 function perform()
 {
     $this->set_publish_status(get_ini_option('doc_flow.ini', 'default', 'unpublished'));
     close_popup();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:unpublish_action.class.php


示例13: compile_entire_file_scheme

/**
* Compiles all templates in the scheme
* 
* @return void 
* @access protected 
*/
function compile_entire_file_scheme()
{
    // Need to add support for accumulating error messages.
    $root = get_ini_option('config.ini', 'filescheme', 'templateroot');
    if (isset($root)) {
        $source_root = $root . '/source';
    } else {
        $source_root = dirname($_SERVER['SCRIPT_FILENAME']) . '/templates/source';
    }
    recursive_compile_all($source_root, '/');
}
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:17,代码来源:compiler_support.inc.php



注:本文中的get_ini_option函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_inline_data函数代码示例发布时间:2022-05-15
下一篇:
PHP get_ini函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap