package-product/Models/Product.php
/**
     * Get a product by {id}
     * @param ARRAY $params list of parameters
     * @return OBJECT product
     */
Get a product by {id}
@param ARRAY $params list of parameters
@return OBJECT product
Get a product by { id } @param ARRAY $params list of parameters @return OBJECT product
public function selectItem($params = array(), $key = NULL) {
        if (empty($key)) {
            $key = $this->primaryKey;
        }
        $elo = $this->joinTable();
        $elo = $this->createSelect($elo);
        $elo = $elo->where($this->primaryKey, $params['id']);
        $item = $elo->first();
        return $item;
    }
public function selectItem ( $ params = array ( ) , $ key = NULL ) { if ( empty ( $ key ) ) { $ key = $ this -> primaryKey ; } $ elo = $ this -> joinTable ( ) ; $ elo = $ this -> createSelect ( $ elo ) ; $ elo = $ elo -> where ( $ this -> primaryKey , $ params [ 'id' ] ) ; $ item = $ elo -> first ( ) ; return $ item ; }
Get a product by {id}
 @param ARRAY $params list of parameters
 @return OBJECT product
Get a product by { id } @param ARRAY $params list of parameters @return OBJECT product
//join to another tables //search filters //$elo = $this->searchFilters($params, $elo, FALSE); //select fields //id //first item