You are here

public function FrxSQLQueryBuilder::block in Forena Reports 7.4

Same name and namespace in other branches
  1. 7.5 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::block()
  2. 7.3 FrxSQLQueryBuilder.inc \FrxSQLQueryBuilder::block()

Parameters

unknown_type $block:

Return value

FrxSQLQueryBuilder

File

./FrxSQLQueryBuilder.inc, line 31
FrxSQLQueryBuilder.inc FrxSQLQuery SQL Builder This class defines a common query builder that is used to make SQL safe queries based on named column filteres. @author metzlerd

Class

FrxSQLQueryBuilder
@file FrxSQLQueryBuilder.inc FrxSQLQuery SQL Builder This class defines a common query builder that is used to make SQL safe queries based on named column filteres. @author metzlerd

Code

public function block($block) {
  list($provider, $block_name) = @explode('/', $block, 2);
  $this->provider = $provider;
  $this->block_name = $block_name;
  $this->repository = Frx::RepoMan()
    ->repository($provider);
  $this
    ->loadBlock();
  return $this;
}