function explodeSkusByWildcard($skus)
    {
        $return = array();
        foreach ($skus as $sku) {
            $sku = str_replace('*', '%', $sku);
            $result = $this->getReadAdapter()->select()
                ->from($this->getProductTable())
                ->where($this->getProductSkuField() . ' LIKE ?', $sku)
                ->query();
            foreach ($result->fetchAll() as $matchedSku) {
                array_push($return, $matchedSku[$this->getProductSkuField()]);
            }
        }
        return $return;
    }
function explodeSkusByWildcard($skus)
    {
        $return = array();
        foreach ($skus as $sku) {
            $sku = str_replace('*', '%', $sku);
            $result = $this->getReadAdapter()->select()
                ->from($this->getProductTable())
                ->where($this->getProductSkuField() . ' LIKE ?', $sku)
                ->query();
            foreach ($result->fetchAll() as $matchedSku) {
                array_push($return, $matchedSku[$this->getProductSkuField()]);
            }
        }
        return $return;
    }
function explodeSkusByWildcard ( $ skus ) { $ return = array ( ) ; foreach ( $ skus as $ sku ) { $ sku = str_replace ( '*' , '%' , $ sku ) ; $ result = $ this -> getReadAdapter ( ) -> select ( ) -> from ( $ this -> getProductTable ( ) ) -> where ( $ this -> getProductSkuField ( ) . ' LIKE ?' , $ sku ) -> query ( ) ; foreach ( $ result -> fetchAll ( ) as $ matchedSku ) { array_push ( $ return , $ matchedSku [ $ this -> getProductSkuField ( ) ] ) ; } } return $ return ; }
Inputs an array of SKUs, derives all possible SKUs with wildcards

@param array $skus
@return array of derived SKUs
Inputs an array of SKUs derives all possible SKUs with wildcards