eCommerce Solutions

Retrieves a list of Image Objects by index.
<!-- getPartImagesByIndex() -->
<?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.
$partImages = $Part->getPartImagesByIndex("b"); // call getPartImagesByIndex() to return an array of Image objects by an index style of 'a, b, e, etc..''
echo "<h2>All Images with an Index style of 'b'</h2>";
foreach($partImages as $imgObj){ // step through each Image Object and display the path
echo "<p>" . $imgObj->getPath() . "</p>"; // display the path of the image.
}
?>