Skip to content

Commit 266398b

Browse files
Merge pull request #2 from carbonhoarder/patch-1
Retrieve a schema in synopsis format
2 parents bda44b1 + e80bf96 commit 266398b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PrestashopWebService.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ class PrestashopWebService extends PSLibrary
1111
/**
1212
* Retrieve the resource schema
1313
*
14-
* @param $resource
14+
* @param $resource , $schema
1515
* @return SimpleXMLElement
1616
* @throws \PrestaShopWebserviceException
1717
*/
18-
public function getSchema($resource)
18+
public function getSchema($resource , $schema = 'blank')
1919
{
20-
return $this->get(['resource' => $resource . '?schema=blank']);
20+
return $this->get(['resource' => $resource . "?schema=$schema"]);
2121
}
2222

2323
/**
@@ -104,4 +104,4 @@ private function checkForUselessNode(SimpleXMLElement $resource, $data)
104104
unset($resource->$key);
105105
}
106106
}
107-
}
107+
}

0 commit comments

Comments
 (0)