本文整理汇总了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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}