当前位置: 首页>>代码示例>>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;未经允许,请勿转载。