public function completed()
    {
        $resource = $this->getActionExecution();
        if ($resource === null) {
            $requiredActionClass = new \core_kernel_classes_Class(self::CLASS_URI);
            $resource = $requiredActionClass->createInstanceWithProperties(array(
                self::PROPERTY_SUBJECT => $this->getUser()->getIdentifier(),
                self::PROPERTY_NAME => $this->requiredAction->getName(),
                self::PROPERTY_EXECUTION_TIME => time(),
            ));
        }
        $timeProperty = (new \core_kernel_classes_Property(self::PROPERTY_EXECUTION_TIME));
        $resource->editPropertyValues($timeProperty, time());
        return $resource;
    }
public function completed()
    {
        $resource = $this->getActionExecution();
        if ($resource === null) {
            $requiredActionClass = new \core_kernel_classes_Class(self::CLASS_URI);
            $resource = $requiredActionClass->createInstanceWithProperties(array(
                self::PROPERTY_SUBJECT => $this->getUser()->getIdentifier(),
                self::PROPERTY_NAME => $this->requiredAction->getName(),
                self::PROPERTY_EXECUTION_TIME => time(),
            ));
        }
        $timeProperty = (new \core_kernel_classes_Property(self::PROPERTY_EXECUTION_TIME));
        $resource->editPropertyValues($timeProperty, time());
        return $resource;
    }
public function completed ( ) { $ resource = $ this -> getActionExecution ( ) ; if ( $ resource === null ) { $ requiredActionClass = new \ core_kernel_classes_Class ( self :: CLASS_URI ) ; $ resource = $ requiredActionClass -> createInstanceWithProperties ( array ( self :: PROPERTY_SUBJECT => $ this -> getUser ( ) -> getIdentifier ( ) , self :: PROPERTY_NAME => $ this -> requiredAction -> getName ( ) , self :: PROPERTY_EXECUTION_TIME => time ( ) , ) ) ; } $ timeProperty = ( new \ core_kernel_classes_Property ( self :: PROPERTY_EXECUTION_TIME ) ) ; $ resource -> editPropertyValues ( $ timeProperty , time ( ) ) ; return $ resource ; }
Mark rule as executed and save time of completed.
@return \core_kernel_classes_Resource
Mark rule as executed and save time of completed .