Beispiel #1
0
 /**
  * Creates blueprints required to construct grids from configuration.
  *
  * @return Builder
  */
 public function run()
 {
     $this->blueprints = Env::instance()->blueprints();
     $this->blueprints->add($this->makeFilterBlueprint())->add($this->makeFieldBlueprint())->add($this->makeComponentBlueprint())->add($config_blueprint = $this->makeConfigBlueprint());
     return new Builder($config_blueprint);
 }
Beispiel #2
0
 /**
  * Returns collection containing
  * blueprints required to construct grids from configuration.
  *
  * @return \Nayjest\Builder\BlueprintsCollection
  */
 public static function blueprints()
 {
     self::getBuilder();
     return Env::instance()->blueprints();
 }
Beispiel #3
0
 public function test()
 {
     $env = Env::instance();
     $this->assertInstanceOf('Nayjest\\Builder\\Env', $env);
     $this->assertInstanceOf('Nayjest\\Builder\\BlueprintsCollection', $env->blueprints());
 }