Retrieves a list of part image objects.
<!-- getPartImages() --> <?php require_once('libraries/happpi/LoadAll.php'); // points to the LoadAll.php file for loading the library. // once the library is required, you can now use one of the main "interaction" classes. // These interaction classes contain methods that get information from our REST API and // converts them to PHP objects for you to use. $Part = new CurtPart(); // create new part object to gain access to its functions. $Part->setPartID(11000); // set the required dependency of partID to get the Part's images. $partImages = $Part->getPartImages(); // call getPartImages() to return an array of Image objects echo "<h2>Part 11000's Images</h2>"; foreach($partImages as $imageObj){ // step through the list of image objects. echo '<img src="' . $imageObj->getPath() . '" width="' . $imageObj->getWidth() . '" />'; // pass the path into the src of the image tag and the width into the width attribute. echo "<br />"; } ?>