getConventions() public method

public getConventions ( ) : Nette\Database\IConventions
return Nette\Database\IConventions
コード例 #1
0
ファイル: SqlBuilder.php プロジェクト: ricco24/database
 public function __construct($tableName, Context $context)
 {
     $this->tableName = $tableName;
     $this->driver = $context->getConnection()->getSupplementalDriver();
     $this->conventions = $context->getConventions();
     $this->structure = $context->getStructure();
     $this->delimitedTable = implode('.', array_map([$this->driver, 'delimite'], explode('.', $tableName)));
 }
コード例 #2
0
ファイル: NetteMapper.php プロジェクト: Zarganwar/orm
 public function __construct(Context $databaseContext)
 {
     $this->databaseContext = $databaseContext;
     $this->databaseStructure = $databaseContext->getStructure();
     $this->databaseConventions = $databaseContext->getConventions();
 }