public function beforeLock () {
        $event = new ModelEvent();
        $event->sender = $this;
        $this->onBeforeLock ($event);
        return $event->isValid;
    }
public function beforeLock () {
        $event = new ModelEvent();
        $event->sender = $this;
        $this->onBeforeLock ($event);
        return $event->isValid;
    }
public function beforeLock ( ) { $ event = new ModelEvent ( ) ; $ event -> sender = $ this ; $ this -> onBeforeLock ( $ event ) ; return $ event -> isValid ; }
Invoked before the mutex is locked.
The default implementation raises the onBeforeLock event
@return boolean true if the lock should continue
Invoked before the mutex is locked . The default implementation raises the onBeforeLock event