activity/logger/logger.php
public function getActivityStatus(KModelEntityInterface $object, $action = null)
    {
        $status = $object->getStatus();

        // Commands may change the original status of an action.
        if ($action == 'after.add' && $status == KModelEntityInterface::STATUS_UPDATED) {
            $status = KModelEntityInterface::STATUS_CREATED;
        }

        // Ignore non-changing edits.
        if ($action == 'after.edit' && $status == KModelEntityInterface::STATUS_FETCHED) {
            $status = null;
        }

        return $status;
    }
public function getActivityStatus(KModelEntityInterface $object, $action = null)
    {
        $status = $object->getStatus();

        // Commands may change the original status of an action.
        if ($action == 'after.add' && $status == KModelEntityInterface::STATUS_UPDATED) {
            $status = KModelEntityInterface::STATUS_CREATED;
        }

        // Ignore non-changing edits.
        if ($action == 'after.edit' && $status == KModelEntityInterface::STATUS_FETCHED) {
            $status = null;
        }

        return $status;
    }
public function getActivityStatus ( KModelEntityInterface $ object , $ action = null ) { $ status = $ object -> getStatus ( ) ; // Commands may change the original status of an action. if ( $ action == 'after.add' && $ status == KModelEntityInterface :: STATUS_UPDATED ) { $ status = KModelEntityInterface :: STATUS_CREATED ; } // Ignore non-changing edits. if ( $ action == 'after.edit' && $ status == KModelEntityInterface :: STATUS_FETCHED ) { $ status = null ; } return $ status ; }
Get the activity status.

The activity status is the current status of the activity object.

@param KModelEntityInterface $object The activity object.
@param string                $action The action being executed.
@return string The activity status.
Get the activity status .