예제 #1
0
파일: cart.php 프로젝트: forthrobot/inuvik
 /**
  * Provides the count of the total number of different items in the cart
  *
  * @api `shopp('cart.total-items')`
  * @since 1.2
  *
  * @param string    $result  The output
  * @param array     $options The options
  * @param ShoppCart $O       The working object
  * @return int The number of items in the cart
  **/
 public static function total_items($result, $options, $O)
 {
     return (int) $O->count();
 }