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


PHP KAutoloader::buildPath方法代码示例

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


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

示例1: Infra_InfraLoader

 public function Infra_InfraLoader(Zend_Config $config = null)
 {
     $infaFolder = null;
     $pluginsFolder = null;
     $cachePath = null;
     if ($config) {
         if (isset($config->cachePath)) {
             $cachePath = $config->cachePath;
         }
         if (isset($config->infaFolder)) {
             $infaFolder = $config->infaFolder;
         }
         if (isset($config->pluginsFolder)) {
             $pluginsFolder = $config->pluginsFolder;
         }
     }
     if (!$infaFolder) {
         $infaFolder = realpath(dirname(__FILE__) . '/../../infra/');
     }
     if (!$pluginsFolder) {
         $pluginsFolder = realpath(dirname(__FILE__) . '/../../plugins/');
     }
     if (!$cachePath) {
         $cachePath = kEnvironment::get("cache_root_path") . '/infra/classMap.cache';
     }
     require_once $infaFolder . DIRECTORY_SEPARATOR . 'KAutoloader.php';
     require_once $infaFolder . DIRECTORY_SEPARATOR . 'kEnvironment.php';
     KAutoloader::setClassPath(array($infaFolder . DIRECTORY_SEPARATOR . '*'));
     KAutoloader::addClassPath(KAutoloader::buildPath($pluginsFolder, '*'));
     KAutoloader::setClassMapFilePath($cachePath);
     KAutoloader::register();
 }
开发者ID:GElkayam,项目名称:server,代码行数:32,代码来源:InfraLoader.php

示例2: get

 /**
  * @param string $type
  * @return KalturaTypeReflector
  */
 static function get($type)
 {
     if (!self::$_enabled) {
         return new KalturaTypeReflector($type);
     }
     if (!array_key_exists($type, self::$_loadedTypeReflectors)) {
         $cachedDir = KAutoloader::buildPath(kConf::get("cache_root_path"), "api_v3", "typeReflector");
         if (!is_dir($cachedDir)) {
             mkdir($cachedDir);
             chmod($cachedDir, 0755);
         }
         $cachedFilePath = $cachedDir . DIRECTORY_SEPARATOR . $type . ".cache";
         $typeReflector = null;
         if (file_exists($cachedFilePath)) {
             $cachedData = file_get_contents($cachedFilePath);
             $typeReflector = unserialize($cachedData);
         }
         if (!$typeReflector) {
             $typeReflector = new KalturaTypeReflector($type);
             $cachedData = serialize($typeReflector);
             $bytesWritten = kFile::safeFilePutContents($cachedFilePath, $cachedData);
             if (!$bytesWritten) {
                 $folderPermission = substr(decoct(fileperms(dirname($cachedFilePath))), 2);
                 error_log("Kaltura type reflector could not be saved to path [{$cachedFilePath}] type [{$type}] folder permisisons [{$folderPermission}]");
             }
         }
         self::$_loadedTypeReflectors[$type] = $typeReflector;
     }
     return self::$_loadedTypeReflectors[$type];
 }
开发者ID:DBezemer,项目名称:server,代码行数:34,代码来源:KalturaTypeReflectorCacher.php

示例3: Infra_InfraLoader

 public function Infra_InfraLoader()
 {
     $infaDir = realpath(dirname(__FILE__) . '/../../infra/');
     $pluginsDir = realpath(dirname(__FILE__) . '/../../plugins/');
     require_once $infaDir . DIRECTORY_SEPARATOR . 'bootstrap_base.php';
     require_once $infaDir . DIRECTORY_SEPARATOR . 'KAutoloader.php';
     KAutoloader::setClassPath(array($infaDir . DIRECTORY_SEPARATOR . '*'));
     KAutoloader::addClassPath(KAutoloader::buildPath($pluginsDir, '*'));
     KAutoloader::setClassMapFilePath(kConf::get("cache_root_path") . '/admin/classMap.cache');
     KAutoloader::register();
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:11,代码来源:InfraLoader.php

示例4: get

 /**
  * @param string $type
  * @return KalturaTypeReflector
  */
 static function get($type)
 {
     if (!self::$_enabled) {
         return new KalturaTypeReflector($type);
     }
     if (!array_key_exists($type, self::$_loadedTypeReflectors)) {
         $cachedDir = KAutoloader::buildPath(kConf::get("cache_root_path"), "api_v3", "typeReflector");
         if (!is_dir($cachedDir)) {
             mkdir($cachedDir);
         }
         $cachedFilePath = $cachedDir . DIRECTORY_SEPARATOR . $type . ".cache";
         if (file_exists($cachedFilePath)) {
             $cachedData = file_get_contents($cachedFilePath);
             $typeReflector = unserialize($cachedData);
         } else {
             $typeReflector = new KalturaTypeReflector($type);
             $cachedData = serialize($typeReflector);
             file_put_contents($cachedFilePath, $cachedData);
         }
         self::$_loadedTypeReflectors[$type] = $typeReflector;
     }
     return self::$_loadedTypeReflectors[$type];
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:27,代码来源:KalturaTypeReflectorCacher.php

示例5: dirname

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "infra" . DIRECTORY_SEPARATOR . "bootstrap_base.php";
define("KALTURA_TESTS_PATH", KALTURA_ROOT_PATH . DIRECTORY_SEPARATOR . "tests");
require_once KALTURA_ROOT_PATH . DIRECTORY_SEPARATOR . 'infra' . DIRECTORY_SEPARATOR . 'kConf.php';
// Autoloader
require_once KALTURA_INFRA_PATH . DIRECTORY_SEPARATOR . "KAutoloader.php";
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "propel", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "phpseclib", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "infra", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_TESTS_PATH, "base", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_TESTS_PATH, "lib", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_TESTS_PATH, "api", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_TESTS_PATH, "common", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_TESTS_PATH, "unitTests", "*"));
set_include_path(get_include_path() . PATH_SEPARATOR . KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "phpseclib"));
//$paths = explode(PATH_SEPARATOR, get_include_path());
//foreach($paths as $path)
//	KAutoloader::addClassPath(KAutoloader::buildPath($path, "*"));
KAutoloader::setClassMapFilePath(kConf::get("cache_root_path") . '/tests/classMap.cache');
//KAutoloader::dumpExtra();
KAutoloader::register();
// Timezone
$timeZone = kConf::get("date_default_timezone");
$isTimeZone = substr_count($timeZone, '@') == 0;
//no @ in a real time zone
if ($isTimeZone) {
    date_default_timezone_set($timeZone);
}
// America/New_York
// Logger
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:30,代码来源:bootstrap.php

示例6: basename

<?php

require_once __DIR__ . '/../../../../alpha/scripts/bootstrap.php';
if ($argc != 4) {
    echo "Arguments missing." . PHP_EOL . PHP_EOL;
    echo 'Usage: php ' . __FILE__ . ' {partner id} {edgecast account number} {api token}' . PHP_EOL;
    die;
}
$partnerId = $argv[1];
$accountNumber = $argv[2];
$apiToken = $argv[3];
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "propel", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "edgecast", "*"));
KAutoloader::setClassMapFilePath(KALTURA_ROOT_PATH . '/cache/scripts/' . basename(__FILE__) . '.cache');
KAutoloader::register();
KalturaPluginManager::addPlugin('EdgeCastPlugin');
$partner = PartnerPeer::retrieveByPK($partnerId);
if (!$partner) {
    die("No partner with ID [{$partnerId}]." . PHP_EOL);
}
$edgeCastParams = new kEdgeCastParams();
$edgeCastParams->setAccountNumber($accountNumber);
$edgeCastParams->setApiToken($apiToken);
EdgeCastPlugin::setEdgeCastParams($partner, $edgeCastParams);
$partner->save();
echo "Done.";
开发者ID:DBezemer,项目名称:server,代码行数:26,代码来源:setEdgeCastParamsOnPartner.php

示例7: error_reporting

<?php

error_reporting(E_ALL);
ini_set("memory_limit", "128M");
define('SF_ROOT_DIR', realpath(dirname(__FILE__) . '/../../alpha/'));
define('SF_APP', 'kaltura');
define('SF_ENVIRONMENT', 'batch');
define('SF_DEBUG', true);
require_once SF_ROOT_DIR . '/../infra/bootstrap_base.php';
require_once KALTURA_ROOT_PATH . DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR . "infra" . DIRECTORY_SEPARATOR . "bootstrap_base.php";
require_once KALTURA_ROOT_PATH . DIRECTORY_SEPARATOR . 'infra' . DIRECTORY_SEPARATOR . 'kConf.php';
// Autoloader
require_once KALTURA_INFRA_PATH . DIRECTORY_SEPARATOR . "KAutoloader.php";
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "propel", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "alpha", "lib", "*"));
// needed for testmeDoc
KAutoloader::setClassMapFilePath(kConf::get("cache_root_path") . '/scripts/' . basename(__FILE__) . '.cache');
KAutoloader::register();
$dbConf = kConf::getDB();
DbManager::setConfig($dbConf);
DbManager::initialize();
if ($argc == 3) {
    $flavor_param_id = $argv[1];
    $conversion_profile_id = $argv[2];
} else {
    die('usage: php ' . $_SERVER['SCRIPT_NAME'] . " [flavor_param_id] [conversion profile id]" . PHP_EOL);
}
$conversion_flavor = flavorParamsConversionProfilePeer::retrieveByFlavorParamsAndConversionProfile($flavor_param_id, $conversion_profile_id);
if (!$conversion_flavor) {
    die('no such flavor param id and conversion profile id.' . PHP_EOL);
}
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:31,代码来源:setPartnerWebPlayableSourceFlag.php

示例8: init

 /**
  * 
  * Used to initialize the ui conf deployment like a bootstarp fiel
  * @param unknown_type $conf_file_path
  */
 public static function init($conf_file_path)
 {
     require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "infra" . DIRECTORY_SEPARATOR . "bootstrap_base.php";
     require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "infra" . DIRECTORY_SEPARATOR . "kConf.php";
     define("KALTURA_API_PATH", KALTURA_ROOT_PATH . DIRECTORY_SEPARATOR . "api_v3");
     // Autoloader
     require_once KALTURA_INFRA_PATH . DIRECTORY_SEPARATOR . "KAutoloader.php";
     KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "propel", "*"));
     KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_API_PATH, "lib", "*"));
     KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_API_PATH, "services", "*"));
     KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "alpha", "plugins", "*"));
     // needed for testmeDoc
     KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "*"));
     KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "generator"));
     // needed for testmeDoc
     KAutoloader::setClassMapFilePath(kConf::get("cache_root_path") . '/deploy/' . basename(__FILE__) . '.cache');
     //KAutoloader::dumpExtra();
     KAutoloader::register();
     $dbConf = kConf::getDB();
     DbManager::setConfig($dbConf);
     DbManager::initialize();
     date_default_timezone_set(kConf::get("date_default_timezone"));
     //		try
     //		{
     $confObj = new Zend_Config_Ini($conf_file_path);
     //		}
     //		catch(Exception $ex)
     //		{
     //			echo 'Exiting on ERROR: '.$ex->getMessage().PHP_EOL;
     //			exit(1);
     //		}
     return $confObj;
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:38,代码来源:deploy_v2.php

示例9: ini_set

 * in case this script is run to change display in search values for specific partner,
 * remember that the sphinx needs to be synchronized to the DB.
 * after running this script (makePartnerEntriesPublic __PARTNER_ID__),
 * pleas run the updatePartnerEntries2Sphinx.php script (updatePartnerEntries2Sphinx __PARTNER_ID__),
 * in order to allow sphinx DB full synchronization with respect to __PARTNER_ID
 */
ini_set("memory_limit", "256M");
define('SF_ROOT_DIR', realpath(dirname(__FILE__) . '/../../alpha/'));
define('SF_APP', 'kaltura');
define('SF_ENVIRONMENT', 'batch');
define('SF_DEBUG', true);
require_once SF_ROOT_DIR . DIRECTORY_SEPARATOR . 'apps' . DIRECTORY_SEPARATOR . SF_APP . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php';
require_once SF_ROOT_DIR . '/../infra/bootstrap_base.php';
require_once KALTURA_INFRA_PATH . DIRECTORY_SEPARATOR . "KAutoloader.php";
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "api_v3", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "batch", "mediaInfoParser", "*"));
KAutoloader::setClassMapFilePath('./logs/classMap.cache');
KAutoloader::register();
error_reporting(E_ALL);
$dbConf = kConf::getDB();
DbManager::setConfig($dbConf);
DbManager::initialize();
if (count($argv) !== 2) {
    die('pleas provide partner id as input' . PHP_EOL . 'to run script: ' . basename(__FILE__) . ' X' . PHP_EOL . 'whereas X is partner id' . PHP_EOL);
}
$partner_id = @$argv[1];
$partner = PartnerPeer::retrieveByPK($partner_id);
if (!$partner) {
    die('no such partner.' . PHP_EOL);
}
$partner->setAppearInSearch(mySearchUtils::DISPLAY_IN_SEARCH_KALTURA_NETWORK);
开发者ID:richhl,项目名称:kalturaCE,代码行数:31,代码来源:makePartnerEntriesPublic.php

示例10: error_reporting

/**************************************************
 * DON'T TOUCH THE FOLLOWING CODE
 ***************************************************/
error_reporting(E_ALL);
chdir(dirname(__FILE__));
require_once realpath(dirname(__FILE__)) . '/../../../alpha/config/sfrootdir.php';
define('SF_APP', 'kaltura');
define('SF_ENVIRONMENT', 'prod');
define('SF_DEBUG', false);
define('MODULES', SF_ROOT_DIR . DIRECTORY_SEPARATOR . 'apps' . DIRECTORY_SEPARATOR . SF_APP . DIRECTORY_SEPARATOR . "modules" . DIRECTORY_SEPARATOR);
require_once SF_ROOT_DIR . DIRECTORY_SEPARATOR . 'apps' . DIRECTORY_SEPARATOR . SF_APP . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php';
define('ROOT_DIR', realpath(dirname(__FILE__) . '/../../../'));
require_once ROOT_DIR . '/infra/bootstrap_base.php';
require_once ROOT_DIR . '/infra/KAutoloader.php';
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "propel", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "document", "*"));
KAutoloader::setClassMapFilePath('../../cache/classMap.cache');
KAutoloader::register();
date_default_timezone_set(kConf::get("date_default_timezone"));
// America/New_York
KalturaLog::setLogger(new KalturaStdoutLogger());
DbManager::setConfig(kConf::getDB());
DbManager::initialize();
$flavorParams = null;
if ($flavorParamsId) {
    $flavorParams = flavorParamsPeer::retrieveByPK($flavorParamsId);
    if (!$flavorParams instanceof SwfFlavorParams) {
        echo "Flavor params id [{$flavorParamsId}] is not SWF flavor params\n";
        exit;
    }
    $flavorParams->setVersion($flavorParams->getVersion() + 1);
开发者ID:richhl,项目名称:kalturaCE,代码行数:31,代码来源:setSwf.php

示例11: define

* limitations under the License.
*
* Modified by Akvelon Inc.
* 2014-06-30
* http://www.akvelon.com/contact-us
*/
/**
 * 
 * @package Scheduler
 */
require_once "../infra/bootstrap_base.php";
require_once KALTURA_ROOT_PATH . '/infra/kConf.php';
require_once KALTURA_ROOT_PATH . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
define("KALTURA_BATCH_PATH", KALTURA_ROOT_PATH . "/batch");
// Autoloader - override the autoloader defaults
require_once KALTURA_INFRA_PATH . "/KAutoloader.php";
KAutoloader::setClassPath(array(KAutoloader::buildPath(KALTURA_ROOT_PATH, "infra", "*"), KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "PHPMailer", "*"), KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "phpseclib", "*"), KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "*"), KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "propel", "*"), KAutoloader::buildPath(KALTURA_ROOT_PATH, "alpha", "*"), KAutoloader::buildPath(KALTURA_BATCH_PATH, "*")));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "*", "batch", "*"));
KAutoloader::setIncludePath(array(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "ZendFramework", "library")));
KAutoloader::setClassMapFilePath(kConf::get("cache_root_path") . '/batch/classMap.cache');
KAutoloader::register();
set_include_path(get_include_path() . PATH_SEPARATOR . KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "phpseclib"));
set_include_path(get_include_path() . PATH_SEPARATOR . KAutoloader::buildPath(KALTURA_ROOT_PATH, "alpha", "apps", "kaltura", "lib"));
// Logger
$loggerConfigPath = KALTURA_ROOT_PATH . "/configurations/logger.ini";
try {
    $config = new Zend_Config_Ini($loggerConfigPath);
    KalturaLog::initLog($config->batch);
    KalturaLog::setContext("BATCH");
} catch (Zend_Config_Exception $ex) {
}
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:31,代码来源:bootstrap.php

示例12: init

function init($conf_file_path)
{
    $conf = parse_ini_file($conf_file_path, true);
    require_once $conf['statics']['infra_path'] . DIRECTORY_SEPARATOR . "bootstrap_base.php";
    require_once KALTURA_INFRA_PATH . DIRECTORY_SEPARATOR . "KAutoloader.php";
    KAutoloader::setIncludePath(array(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "ZendFramework", "library")));
    KAutoloader::register();
    $confObj = new Zend_Config_Ini('config.ini');
    return $confObj;
}
开发者ID:richhl,项目名称:kalturaCE,代码行数:10,代码来源:deploy.php

示例13: microtime

<?php

require_once "../../bootstrap.php";
KalturaLog::setContext("TESTME");
$type = $_GET["type"];
$bench_start = microtime(true);
KalturaLog::INFO(">------- api_v3 testme type [{$type}]-------");
function toArrayRecursive(KalturaPropertyInfo $propInfo)
{
    return $propInfo->toArray(true);
}
$subClasses = array();
try {
    KalturaTypeReflector::setClassInheritMapPath(KAutoloader::buildPath(kConf::get("cache_root_path"), "api_v3", "KalturaClassInheritMap.cache"));
    if (!KalturaTypeReflector::hasClassInheritMapCache()) {
        $config = new Zend_Config_Ini("../../config/testme.ini");
        $indexConfig = $config->get('testme');
        $include = $indexConfig->get("include");
        $exclude = $indexConfig->get("exclude");
        $excludePaths = $indexConfig->get("excludepaths");
        $additional = $indexConfig->get("additional");
        $clientGenerator = new DummyForDocsClientGenerator();
        $clientGenerator->setIncludeOrExcludeList($include, $exclude, $excludePaths);
        $clientGenerator->setAdditionalList($additional);
        $clientGenerator->load();
        $objects = $clientGenerator->getTypes();
        KalturaTypeReflector::setClassMap(array_keys($objects));
    }
    $subClassesNames = KalturaTypeReflector::getSubClasses($type);
    foreach ($subClassesNames as $subClassName) {
        $subClass = new KalturaPropertyInfo($subClassName);
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:31,代码来源:ajax-get-type-subclasses.php

示例14: set_time_limit

<?php

set_time_limit(0);
ini_set("memory_limit", "2048M");
define('ROOT_DIR', realpath(dirname(__FILE__) . '/../'));
require_once ROOT_DIR . '/alpha/config/kConf.php';
require_once ROOT_DIR . '/infra/bootstrap_base.php';
require_once ROOT_DIR . '/infra/KAutoloader.php';
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "propel", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "api_v3", "lib", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "admin_console", "lib", "Kaltura", "*"));
KAutoloader::setClassMapFilePath(kConf::get("cache_root_path") . '/deploy/classMap.cache');
KAutoloader::register();
date_default_timezone_set(kConf::get("date_default_timezone"));
// America/New_York
KalturaLog::setLogger(new KalturaStdoutLogger());
DbManager::setConfig(kConf::getDB());
DbManager::initialize();
开发者ID:richhl,项目名称:kalturaCE,代码行数:19,代码来源:bootstrap.php

示例15: realpath

require_once KALTURA_API_PATH . DIRECTORY_SEPARATOR . 'VERSION.php';
//defines KALTURA_API_VERSION
require_once KALTURA_ROOT_PATH . DIRECTORY_SEPARATOR . 'infra' . DIRECTORY_SEPARATOR . 'kConf.php';
require_once KALTURA_ROOT_PATH . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
// Autoloader
require_once KALTURA_INFRA_PATH . DIRECTORY_SEPARATOR . "KAutoloader.php";
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "vendor", "propel", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_API_PATH, "lib", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_API_PATH, "services", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "alpha", "plugins", "*"));
// needed for testmeDoc
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "generator"));
// needed for testmeDoc
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "infra", "utils", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "infra", "thumbnailMaker", "*"));
KAutoloader::setClassMapFilePath(kConf::get("cache_root_path") . '/api_v3/classMap.cache');
//KAutoloader::dumpExtra();
KAutoloader::register();
// Timezone
date_default_timezone_set(kConf::get("date_default_timezone"));
// America/New_York
// Logger
$loggerConfigPath = realpath(KALTURA_ROOT_PATH . DIRECTORY_SEPARATOR . "configurations" . DIRECTORY_SEPARATOR . "logger.ini");
try {
    $config = new Zend_Config_Ini($loggerConfigPath);
    $api_v3 = $config->api_v3;
    KalturaLog::initLog($api_v3);
} catch (Zend_Config_Exception $ex) {
    $config = null;
}
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:31,代码来源:bootstrap.php


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