Ejemplo n.º 1
0
 /**
  * Returns the collection of option sets.
  *
  * @param array $filter
  * @return array
  */
 public static function getOptionSets($filter = false)
 {
     $filter = BigCommerce_Api_Filter::create($filter);
     return self::getCollection('/optionsets' . $filter->toQuery(), 'OptionSet');
 }
Ejemplo n.º 2
0
 public function testFactoryWithMultipleParams()
 {
     $filter = BigCommerce_Api_Filter::create(array("one" => "1", "two" => "2"));
     $this->assertEquals("?one=1&two=2", $filter->toQuery());
 }