當前位置: 首頁>>代碼示例>>PHP>>正文


PHP myContentStorage::generateRandomFileName方法代碼示例

本文整理匯總了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();
 }
開發者ID:AdiTal,項目名稱:server,代碼行數:16,代碼來源:entry.php

示例2: setPicture

 public function setPicture($filename)
 {
     if (kCurrentContext::isApiV3Context()) {
         parent::setPicture($filename);
         return;
     }
     parent::setPicture(myContentStorage::generateRandomFileName($filename, $this->getPicture()));
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:8,代碼來源:kuser.php

示例3: setPicture

 public function setPicture($filename)
 {
     if (defined("KALTURA_API_V3")) {
         parent::setPicture($filename);
         return;
     }
     parent::setPicture(myContentStorage::generateRandomFileName($filename, $this->getPicture()));
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:8,代碼來源:kuser.php

示例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);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:12,代碼來源:kshow.php

示例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();
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:15,代碼來源:entry.php


注:本文中的myContentStorage::generateRandomFileName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。