# userEntitled() Determines dynamically at time of login if user entitled # from inspection of local Entitlement cache. # # #----------------------------------------------------------------------------------- ini_set('include_path', '/usr/local/Vindicia_php5_lib_5.0'); ini_set('display_errors', 1); error_reporting(E_ALL | E_STRICT); require_once 'Vindicia/Soap/Vindicia.php'; require_once 'Vindicia/Soap/Const.php'; // initialize local storage of start timestamp for next execution: $next_start = ""; // move this into a database/persistent storage $bPrintProducts = true; if ($bPrintProducts) { $fetchProduct_soapId = displayProducts(); logMsg("Product.fetchAll() soapId: " . $fetchProduct_soapId . "\n\n"); } $bFetchEntitlements = true; if ($bFetchEntitlements) { $nUpdated = fetchEntitlements(); logMsg("TEntitlement: Updated " . $nUpdated . " entitlements\n"); } function displayProducts() { $soapId = null; $page = 0; $pageSize = 10; $returnCode = '200'; $product = new Product(); $response = $product->fetchAll($page, $pageSize);
<?php displayProducts($_GET["page"]); $products = ProdukteQuery::create()->find(); foreach ($products as $product) { echo $product->getName(); }