src/Repositories/CategoryRepository.php
/**
     * Initializes the repository's prepared statements.
     *
     * @return void
     */
Initializes the repository's prepared statements.
@return void
Initializes the repository ' s prepared statements . @return void
public function init()
    {
        $this->categoriesStmt =
            $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::CATEGORIES));
        $this->rootCategoriesStmt =
            $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::ROOT_CATEGORIES));
        $this->categoriesByStoreViewStmt =
            $this->getConnection()->prepare($this->loadStatement(SqlStatementKeys::CATEGORIES_BY_STORE_VIEW));
    }
public function init ( ) { $ this -> categoriesStmt = $ this -> getConnection ( ) -> prepare ( $ this -> loadStatement ( SqlStatementKeys :: CATEGORIES ) ) ; $ this -> rootCategoriesStmt = $ this -> getConnection ( ) -> prepare ( $ this -> loadStatement ( SqlStatementKeys :: ROOT_CATEGORIES ) ) ; $ this -> categoriesByStoreViewStmt = $ this -> getConnection ( ) -> prepare ( $ this -> loadStatement ( SqlStatementKeys :: CATEGORIES_BY_STORE_VIEW ) ) ; }
Initializes the repository's prepared statements.
Initializes the repository ' s prepared statements .
// initialize the prepared statements