当前位置: 首页>>代码示例>>PHP>>正文


PHP AppConfig::iniSet方法代码示例

本文整理汇总了PHP中AppConfig::iniSet方法的典型用法代码示例。如果您正苦于以下问题:PHP AppConfig::iniSet方法的具体用法?PHP AppConfig::iniSet怎么用?PHP AppConfig::iniSet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AppConfig的用法示例。


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

示例1: chdir

<?php

/* {[The file is published on the basis of YetiForce Public License that can be found in the following directory: licenses/License.html]} */
chdir(__DIR__ . '/../');
require_once 'include/main/WebUI.php';
require_once 'api/webservice/Core/BaseAction.php';
require_once 'api/webservice/Core/APISession.php';
require_once 'api/webservice/API.php';
if (!in_array('webservice', $enabledServices)) {
    $apiLog = new APINoPermittedException();
    $apiLog->stop(['status' => 0, 'Encrypted' => 0, 'error' => ['message' => 'Webservice - Service is not active']]);
}
AppConfig::iniSet('error_log', $root_directory . 'cache/logs/webservice.log');
try {
    $api = new API();
    $api->preProcess();
    $api->process();
    $api->postProcess();
} catch (APIException $e) {
}
开发者ID:yozhi,项目名称:YetiForceCRM,代码行数:20,代码来源:webservice.php

示例2: dirname

/* +***********************************************************************************************************************************
 * The contents of this file are subject to the YetiForce Public License Version 1.1 (the "License"); you may not use this file except
 * in compliance with the License.
 * Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
 * See the License for the specific language governing rights and limitations under the License.
 * The Original Code is YetiForce.
 * The Initial Developer of the Original Code is YetiForce. Portions created by YetiForce are Copyright (C) www.yetiforce.com. 
 * All Rights Reserved.
 * *********************************************************************************************************************************** */
$currentPath = dirname(__FILE__);
$crmPath = $currentPath . '/../';
chdir($crmPath);
require_once 'include/database/PearDatabase.php';
require_once 'libraries/restler/restler.php';
require_once 'include/utils/VtlibUtils.php';
AppConfig::iniSet('error_log', $root_directory . 'cache/logs/mobileApps.log');
if (!in_array('mobile', $enabledServices)) {
    require_once 'include/exceptions/AppException.php';
    $apiLog = new APINoPermittedException();
    $apiLog->stop(['status' => 0, 'message' => 'Mobile - Service is not active']);
}
$adb = PearDatabase::getInstance();
$log =& LoggerManager::getLogger('mobileApps');
vglobal('log', $log);
$adb = PearDatabase::getInstance();
$log->info('Start mobile service');
spl_autoload_register('spl_autoload');
$r = new Restler();
$r->addAPIClass('Test');
$r->addAPIClass('HistoryCall');
$r->addAPIClass('PushCall');
开发者ID:awflu,项目名称:YetiForceCRM,代码行数:31,代码来源:mobile.php

示例3:

//Disable Stat Tracking of vtiger CRM instance
$disable_stats_tracking = false;
// Generating Unique Application Key
$application_unique_key = '_VT_APP_UNIQKEY_';
// trim descriptions, titles in listviews to this value
$listview_max_textlength = 40;
// Maximum time limit for PHP script execution (in seconds)
$php_max_execution_time = 0;
// Set the default timezone as per your preference
$default_timezone = '_TIMEZONE_';
/** If timezone is configured, try to set it */
if (isset($default_timezone) && function_exists('date_default_timezone_set')) {
    @date_default_timezone_set($default_timezone);
}
// Change of logs directory with PHP errors
AppConfig::iniSet('error_log', $root_directory . 'cache/logs/phpError.log');
// Enable sharing of records?
$shared_owners = true;
// Maximum length of characters for title
$title_max_length = 60;
// Maximum length for href tag
$href_max_length = 35;
// Maximum number of displayed search results
$max_number_search_result = 100;
//Should menu breadcrumbs be visible? true = show, false = hide
$breadcrumbs = true;
//Separator for menu breadcrumbs default value = '>'
$breadcrumbs_separator = '>';
//Pop-up window type with record list  1 - Normal , 2 - Expanded search
$popupType = 1;
//Minimum cron frequency [min]
开发者ID:nikdejan,项目名称:YetiForceCRM,代码行数:31,代码来源:config.template.php

示例4: arrayCombine

<?php

/*+***********************************************************************************
 * The contents of this file are subject to the vtiger CRM Public License Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * The Original Code is:  vtiger CRM Open Source
 * The Initial Developer of the Original Code is vtiger.
 * Portions created by vtiger are Copyright (C) vtiger.
 * All Rights Reserved.
 *************************************************************************************/
AppConfig::iniSet("auto_detect_line_endings", true);
class Import_CSVReader_Reader extends Import_FileReader_Reader
{
    public function arrayCombine($key, $value)
    {
        $combine = array();
        $dup = array();
        for ($i = 0; $i < count($key); $i++) {
            if (array_key_exists($key[$i], $combine)) {
                if (!$dup[$key[$i]]) {
                    $dup[$key[$i]] = 1;
                }
                $key[$i] = $key[$i] . "(" . ++$dup[$key[$i]] . ")";
            }
            $combine[$key[$i]] = $value[$i];
        }
        return $combine;
    }
    public function getFirstRowData($hasHeader = true)
    {
        global $default_charset;
开发者ID:awflu,项目名称:YetiForceCRM,代码行数:31,代码来源:CSVReader.php

示例5: APINoPermittedException

/* {[The file is published on the basis of YetiForce Public License
 * that can be found in the following directory: licenses/License.html]} */
require_once 'include/ConfigUtils.php';
if (!in_array('yetiportal', $enabledServices)) {
    require_once 'include/exceptions/AppException.php';
    $apiLog = new APINoPermittedException();
    $apiLog->stop(['status' => 0, 'message' => 'YetiPortal - Service is not active']);
}
require_once 'vtlib/Vtiger/Module.php';
require_once 'include/main/WebUI.php';
require_once 'libraries/nusoap/nusoap.php';
require_once 'modules/HelpDesk/HelpDesk.php';
require_once 'modules/Emails/mail.php';
require_once 'modules/Users/Users.php';
require_once 'modules/Settings/CustomerPortal/helpers/CustomerPortalPassword.php';
AppConfig::iniSet('error_log', $root_directory . 'cache/logs/yetiportal.log');
/** Configure language for server response translation */
$current_language = vglobal('current_language');
if (!isset($current_language)) {
    $current_language = vglobal('default_language');
}
$log =& LoggerManager::getLogger('portal');
$userid = getPortalUserid();
$user = new Users();
$current_user = $user->retrieveCurrentUserInfoFromFile($userid);
$NAMESPACE = 'http://www.yetiforce.com';
$server = new soap_server();
$server->configureWSDL('customerportal');
$server->wsdl->addComplexType('common_array', 'complexType', 'array', '', array('fieldname' => array('name' => 'fieldname', 'type' => 'xsd:string')));
$server->wsdl->addComplexType('common_array1', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:common_array[]')), 'tns:common_array');
$server->wsdl->addComplexType('add_contact_detail_array', 'complexType', 'array', '', array('salutation' => array('name' => 'salutation', 'type' => 'xsd:string'), 'firstname' => array('name' => 'firstname', 'type' => 'xsd:string'), 'phone' => array('name' => 'phone', 'type' => 'xsd:string'), 'lastname' => array('name' => 'lastname', 'type' => 'xsd:string'), 'mobile' => array('name' => 'mobile', 'type' => 'xsd:string'), 'parentid' => array('name' => 'parentid', 'type' => 'xsd:string'), 'leadsource' => array('name' => 'leadsource', 'type' => 'xsd:string')));
开发者ID:awflu,项目名称:YetiForceCRM,代码行数:31,代码来源:yetiportal.php

示例6: setGcProbability

 /**
  * If optional parameter is specified it determines the
  * probability that the gc (garbage collection) routine is started
  * and session data is cleaned up
  *
  * It returns the previous value of this property
  *
  * @param bool $gcProbability If specified it will replace the previous value
  *                            of this property
  *
  * @static
  * @access public
  * @return bool   The previous value of the property
  */
 public static function setGcProbability($gcProbability = null)
 {
     $return = ini_get('session.gc_probability');
     if (isset($gcProbability) && is_int($gcProbability) && $gcProbability >= 1 && $gcProbability <= 100) {
         AppConfig::iniSet('session.gc_probability', $gcProbability);
     }
     return $return;
 }
开发者ID:awflu,项目名称:YetiForceCRM,代码行数:22,代码来源:Session.php


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