本文整理汇总了PHP中Tiki_Profile::getProfileKeyfor方法的典型用法代码示例。如果您正苦于以下问题:PHP Tiki_Profile::getProfileKeyfor方法的具体用法?PHP Tiki_Profile::getProfileKeyfor怎么用?PHP Tiki_Profile::getProfileKeyfor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tiki_Profile
的用法示例。
在下文中一共展示了Tiki_Profile::getProfileKeyfor方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: serializeNamedObject
public static function serializeNamedObject($object)
{
if (strpos($object['domain'], '://') === false) {
if (is_dir($object['domain'])) {
$object['domain'] = "file://" . $object['domain'];
} else {
$object['domain'] = "http://" . $object['domain'];
}
}
return sprintf("%s#%s", Tiki_Profile::getProfileKeyfor($object['domain'], $object['profile']), $object['object']);
}
示例2: serializeNamedObject
public static function serializeNamedObject($object)
{
return sprintf("%s#%s", Tiki_Profile::getProfileKeyfor($object['domain'], $object['profile']), $object['object']);
}
示例3: getRequiredProfiles
function getRequiredProfiles($recursive = false, $known = array())
{
$profiles = array();
foreach ($this->getExternalReferences() as $ext) {
$key = Tiki_Profile::getProfileKeyfor($ext['domain'], $ext['profile']);
if (array_key_exists($key, $known) || array_key_exists($key, $profiles)) {
continue;
}
$profiles[$key] = self::fromNames($ext['domain'], $ext['profile']);
}
if ($recursive) {
foreach ($profiles as $profile) {
if (is_object($profile)) {
$profiles = array_merge($profiles, $profile->getRequiredProfiles(true, $profiles));
}
}
}
return $profiles;
}