public static function unlock($cid, $ctype) { if ($lock = self::getByElement($cid, $ctype)) { $lock->delete(); } return true; }
public function unlockElementAction() { Element\Editlock::unlock($this->getParam("id"), $this->getParam("type")); exit; }