当前位置: 首页>>代码示例>>PHP>>正文


PHP Property::getUri方法代码示例

本文整理汇总了PHP中Property::getUri方法的典型用法代码示例。如果您正苦于以下问题:PHP Property::getUri方法的具体用法?PHP Property::getUri怎么用?PHP Property::getUri使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Property的用法示例。


在下文中一共展示了Property::getUri方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: toArray

 /**
  * Short description of method toArray
  *
  * @access public
  * @author Joel Bout, <joel.bout@tudor.lu>
  * @return array
  */
 public function toArray()
 {
     $returnValue = array();
     $returnValue = parent::toArray();
     $returnValue['prop'] = $this->property->getUri();
     return (array) $returnValue;
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:14,代码来源:class.PropertyColumn.php

示例2: getAllByModel

 /**
  * Get items of a specific model
  * @param string|core_kernel_classes_Resource $itemModel - the item model URI
  * @return core_kernel_classes_Resource[] the found items
  */
 public function getAllByModel($itemModel)
 {
     if (!empty($itemModel)) {
         $uri = $itemModel instanceof core_kernel_classes_Resource ? $itemModel->getUri() : $itemModel;
         return $this->itemClass->searchInstances(array($this->itemModelProperty->getUri() => $uri), array('recursive' => true));
     }
     return array();
 }
开发者ID:nagyist,项目名称:tao-extension-tao-item,代码行数:13,代码来源:class.ItemsService.php

示例3: getExecutions

 /**
  * get the executions of this activity
  *
  * @access public
  * @author Somsack Sipasseuth, <somsack.sipasseuth@tudor.lu>
  * @param  Resource activity
  * @param  Resource processExecution
  * @return array
  */
 public function getExecutions(core_kernel_classes_Resource $activity, core_kernel_classes_Resource $processExecution)
 {
     $returnValue = array();
     if (!is_null($activity) && !is_null($processExecution)) {
         $filters = array(PROPERTY_ACTIVITY_EXECUTION_ACTIVITY => $activity->getUri(), $this->processExecutionProperty->getUri() => $processExecution->getUri());
         $clazz = new core_kernel_classes_Class(CLASS_ACTIVITY_EXECUTION);
         $options = array('recursive' => 0, 'like' => false);
         foreach ($clazz->searchInstances($filters, $options) as $activityExecution) {
             $returnValue[$activityExecution->getUri()] = $activityExecution;
         }
     }
     return (array) $returnValue;
 }
开发者ID:nagyist,项目名称:extension-tao-wfengine,代码行数:22,代码来源:class.ActivityExecutionService.php

示例4: getNotificationsToSend

 /**
  * Short description of method getNotificationsToSend
  *
  * @access public
  * @author Somsack Sipasseuth, <somsack.sipasseuth@tudor.lu>
  * @return array
  */
 public function getNotificationsToSend()
 {
     $returnValue = array();
     //get the notifications with the sent property to false
     $notifications = $this->notificationClass->searchInstances(array($this->notificationSentProp->getUri() => GENERIS_FALSE), array('like' => false, 'recursive' => 0));
     foreach ($notifications as $notification) {
         //there a date prop by sending try. After 4 try, we stop to try (5 because the 4 try and the 1st date is the creation date)
         $dates = $notification->getPropertyValues($this->notificationDateProp);
         if (count($dates) < 5) {
             $returnValue[] = $notification;
         }
     }
     return (array) $returnValue;
 }
开发者ID:nagyist,项目名称:extension-tao-wfengine,代码行数:21,代码来源:class.NotificationService.php

示例5: getDefaultFilePath

 /**
  * Short description of method getDefaultFilePath
  *
  * @access public
  * @author Somsack Sipasseuth, <somsack.sipasseuth@tudor.lu>
  * @return string
  */
 public function getDefaultFilePath()
 {
     $returnValue = (string) '';
     $returnValue = tao_helpers_Uri::getUniqueId($this->ownerInstance->getUri()) . '/' . tao_helpers_Uri::getUniqueId($this->property->getUri());
     return (string) $returnValue;
 }
开发者ID:swapnilaptara,项目名称:tao-aptara-assess,代码行数:13,代码来源:class.VersionedFile.php


注:本文中的Property::getUri方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。