本文整理汇总了PHP中myCustomData类的典型用法代码示例。如果您正苦于以下问题:PHP myCustomData类的具体用法?PHP myCustomData怎么用?PHP myCustomData使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了myCustomData类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: set_time_limit
<?php
$partnerId = 1;
set_time_limit(0);
ini_set("memory_limit", "700M");
error_reporting(E_ALL);
chdir(dirname(__FILE__));
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, "plugins", "audit", "*"));
KAutoloader::addClassPath(KAutoloader::buildPath(KALTURA_ROOT_PATH, "plugins", "metadata", "*"));
KAutoloader::setClassMapFilePath(kConf::get("cache_root_path") . '/scripts/' . basename(__FILE__) . '.cache');
KAutoloader::register();
$customData = myCustomData::fromString('a:3:{s:24:"defConversionProfileType";s:3:"med";s:22:"defaultAccessControlId";i:1;s:26:"defaultConversionProfileId";i:1;}');
$enabledPlugins = array();
$enabledPlugins[AuditPlugin::PLUGIN_NAME] = true;
$enabledPlugins[MetadataPlugin::PLUGIN_NAME] = true;
$customData->put("enabledPlugins", $enabledPlugins);
$customData->put("enableVast", true);
$customData->put("liveEnabled", true);
echo $customData->toString();
示例2: setCustomDataObj
/**
* Must be called before saving the object
*/
public function setCustomDataObj()
{
if ($this->m_custom_data != null) {
$this->custom_data_md5 = is_null($this->custom_data) ? null : md5($this->custom_data);
$this->setCustomData($this->m_custom_data->toString());
}
}
示例3: setCustomDataObj
/**
* Must be called before saving the object
*/
public function setCustomDataObj()
{
if ($this->m_custom_data != null) {
$this->setCustomData($this->m_custom_data->toString());
}
}