Pimcore\Model\Element\Editlock::unlock PHP Метод

unlock() публичный статический Метод

public static unlock ( $cid, $ctype ) : boolean
$cid
$ctype
Результат boolean
    public static function unlock($cid, $ctype)
    {
        if ($lock = self::getByElement($cid, $ctype)) {
            $lock->delete();
        }
        return true;
    }

Usage Example

Пример #1
0
 public function unlockElementAction()
 {
     Element\Editlock::unlock($this->getParam("id"), $this->getParam("type"));
     exit;
 }