...
To use the functions, first an instance of the class must be created, here a code example. Example:
Code Block | ||||
---|---|---|---|---|
| ||||
<?php require_once ('/path/to/modules/addons/hideproducts/autoload.php'); $pid = 1234; try { $hideproducts = new dpl_hideproducts (); $getProductState = $hideproducts->getProductState ('product', $pid); var_dump ($getProductState); } catch (Exception $e) { echo $e->getMessage(); } |
...