public function actionLock($tag) { $lock = $this->getOwner()->getLock($tag); $this->getOwner()->setLock($tag, !$lock); echo !$lock; }