public function generate($where, string $name = null)
    {
        $model = (static::MODEL_CLASS)::getInstance($where);
        if ($model === null) {
            return false;
        }

        $view = static::getView($model);

        $this->views[] = [
            'file' => $view,
            'name' => BankInterchange\Utils::addExtension(
                $name ?? $view->filename(),
                static::EXTENSION
            ),
        ];

        return true;
    }
public function generate($where, string $name = null)
    {
        $model = (static::MODEL_CLASS)::getInstance($where);
        if ($model === null) {
            return false;
        }

        $view = static::getView($model);

        $this->views[] = [
            'file' => $view,
            'name' => BankInterchange\Utils::addExtension(
                $name ?? $view->filename(),
                static::EXTENSION
            ),
        ];

        return true;
    }
public function generate ( $ where , string $ name = null ) { $ model = ( static :: MODEL_CLASS ) :: getInstance ( $ where ) ; if ( $ model === null ) { return false ; } $ view = static :: getView ( $ model ) ; $ this -> views [ ] = [ 'file' => $ view , 'name' => BankInterchange \ Utils :: addExtension ( $ name ?? $ view -> filename ( ) , static :: EXTENSION ) , ] ; return true ; }
Generates the file View from data in a Medools Model

@param mixed  $where \Medoo\Medoo $where clause for MODEL_CLASS
@param string $name  Name for the generated file

@return boolean For success or failure
Generates the file View from data in a Medools Model