本文整理匯總了PHP中myContentStorage::generateRandomFileName方法的典型用法代碼示例。如果您正苦於以下問題:PHP myContentStorage::generateRandomFileName方法的具體用法?PHP myContentStorage::generateRandomFileName怎麽用?PHP myContentStorage::generateRandomFileName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類myContentStorage
的用法示例。
在下文中一共展示了myContentStorage::generateRandomFileName方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setThumbnail
/**
* This function sets and returns a new path for a requested content entity.
* @param string $filename = the original fileName from which the extension is cut.
* @return string the content file name
*/
public function setThumbnail($filename, $force = false)
{
if ($force) {
$data = $filename;
} else {
$data = myContentStorage::generateRandomFileName($filename, $this->getThumbnail());
}
$this->onAssetContentModified();
parent::setThumbnail($data);
return $this->getThumbnail();
}
示例2: setPicture
public function setPicture($filename)
{
if (kCurrentContext::isApiV3Context()) {
parent::setPicture($filename);
return;
}
parent::setPicture(myContentStorage::generateRandomFileName($filename, $this->getPicture()));
}
示例3: setPicture
public function setPicture($filename)
{
if (defined("KALTURA_API_V3")) {
parent::setPicture($filename);
return;
}
parent::setPicture(myContentStorage::generateRandomFileName($filename, $this->getPicture()));
}
示例4: setSkinResourceByProperty
/**
* This function sets and returns a new path for a requested content entity.
* @param string $filename = the original fileName from which the extension is cut.
* @param string $prop_name = the property name to update in the skinContainer.
* @param string $$skin_container = should be passed to avoid serializing & deserailizing from $this->getSkin
* @return string the content file name
*/
public function setSkinResourceByProperty($filename, $prop_name, skinContainer &$skin_container)
{
$skin_container->setByName($prop_name, myContentStorage::generateRandomFileName($filename, $skin_container->getParamFromObject($prop_name)));
return $skin_container->getParamFromObject($prop_name);
}
示例5: setThumbnail
/**
* This function sets and returns a new path for a requested content entity.
* @param string $filename = the original fileName from which the extension is cut.
* @return string the content file name
*/
public function setThumbnail($filename, $force = false)
{
if ($force) {
$data = $filename;
} else {
$data = myContentStorage::generateRandomFileName($filename, $this->getThumbnail());
}
Baseentry::SetThumbnail($data);
return $this->getThumbnail();
}