public function run()
    {
        if ($this->fireEvent("OnBeforeRun")) {
            if ($this->dataSources != null) {
                foreach ($this->dataSources as $dataSource) {
                    if (!$dataSource->isEnded()) {
                        $dataSource->start();
                    }
                }
            }
        }
        $this->fireEvent("OnRunEnd");
        return $this;
    }
public function run()
    {
        if ($this->fireEvent("OnBeforeRun")) {
            if ($this->dataSources != null) {
                foreach ($this->dataSources as $dataSource) {
                    if (!$dataSource->isEnded()) {
                        $dataSource->start();
                    }
                }
            }
        }
        $this->fireEvent("OnRunEnd");
        return $this;
    }
public function run ( ) { if ( $ this -> fireEvent ( "OnBeforeRun" ) ) { if ( $ this -> dataSources != null ) { foreach ( $ this -> dataSources as $ dataSource ) { if ( ! $ dataSource -> isEnded ( ) ) { $ dataSource -> start ( ) ; } } } } $ this -> fireEvent ( "OnRunEnd" ) ; return $ this ; }
Run the report

@return KoolReport Return this report object
Run the report