NewComponent::onMyEvent PHP Метод

onMyEvent() публичный Метод

public onMyEvent ( $param )
    public function onMyEvent($param)
    {
        $this->raiseEvent('OnMyEvent', $this, $param);
    }

Usage Example

Пример #1
0
 public function testInvalidHandler2()
 {
     $this->component->onMyEvent = array($this->component, 'nullHandler');
     try {
         $this->component->onMyEvent();
     } catch (Exception $e) {
         $this->assertInstanceOf('CException', $e);
         $this->assertSame('Event "NewComponent.onmyevent" is attached with an invalid handler "nullHandler".', $e->getMessage());
     }
 }
All Usage Examples Of NewComponent::onMyEvent