ElggEntity::updateLastAction PHP Method

updateLastAction() public method

Update the last_action column in the entities table.
public updateLastAction ( integer $posted = null ) : integer | false
$posted integer Timestamp of last action
return integer | false
    public function updateLastAction($posted = null)
    {
        $posted = _elgg_services()->entityTable->updateLastAction($this, $posted);
        if ($posted) {
            $this->attributes['last_action'] = $posted;
            _elgg_services()->entityCache->set($this);
            $this->storeInPersistedCache(_elgg_get_memcache('new_entity_cache'));
        }
        return $posted;
    }