Пример #1
0
 /**
  * Shopping constructor
  *
  * @return void
  **/
 public function __construct()
 {
     // Set the database table to use
     $this->_table = ShoppDatabaseObject::tablename('shopping');
     if (Shopp::is_robot()) {
         return;
     }
     // Initialize the session handlers
     parent::__construct();
     add_action('shopp_init', array($this, 'unlock'), 100);
     add_action('shopp_cart_updated', array($this, 'savecart'));
 }
Пример #2
0
/**
 * @deprecated Use Shopp::is_robot()
 **/
function is_robot()
{
    return Shopp::is_robot();
}