phpQueryObject::trigger PHP 메소드

trigger() 공개 메소드

Trigger a type of event on every matched element.
public trigger ( unknown_type $type, unknown_type $data = [] ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery
$type unknown_type
$data unknown_type
리턴 phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery
    public function trigger($type, $data = array())
    {
        foreach ($this->elements as $node) {
            phpQueryEvents::trigger($this->getDocumentID(), $type, $data, $node);
        }
        return $this;
    }