if ( $clean['tipafriend'] ) { $cli->output( "Removing all counters for tip-a-friend" ); eZTipafriendCounter::cleanup(); } if ( $clean['shop'] ) { $cli->output( "Removing all baskets" ); eZBasket::cleanup(); $cli->output( "Removing all wishlists" ); eZWishList::cleanup(); $cli->output( "Removing all orders" ); eZOrder::cleanup(); $productCount = eZPersistentObject::count( eZProductCollection::definition() ); if ( $productCount > 0 ) { $cli->warning( "$productCount product collections still exists, must be a leak" ); } } if ( $clean['forgotpassword'] ) { $cli->output( "Removing all forgot password requests" ); eZForgotPassword::cleanup(); } if ( $clean['workflow'] ) { $cli->output( "Removing all workflow processes and operation mementos" );
/** * Fetches an eZProductCollection based on its ID * * @param int $productCollectionID * @param bool $asObject * If true, return an object. if false, returns an array * * @return array|eZProductCollection */ static function fetch($productCollectionID, $asObject = true) { return eZPersistentObject::fetchObject(eZProductCollection::definition(), null, array('id' => $productCollectionID), $asObject); }