/www/coin-brothers.com/vendor/mongodb/mongodb/src/Operation/Count.php [ 159 ]
154 $cursor = $server->executeReadCommand($this->databaseName, new Command($this->createCommandDocument()), $this->createOptions());
155 $result = current($cursor->toArray());
156
157 // Older server versions may return a float
158 if ( ! isset($result->n) || ! (is_integer($result->n) || is_float($result->n))) {
159 throw new UnexpectedValueException('count command did not return a numeric "n" value');
160 }
161
162 return (integer) $result->n;
163 }
164
-
/www/coin-brothers.com/vendor/mongodb/mongodb/src/Collection.php [ 277 ] » MongoDB\Operation\Count->execute(arguments)
0
object MongoDB\Driver\Server(0)
{ }
272 $options['readConcern'] = $this->readConcern; 273 } 274 275 $operation = new Count($this->databaseName, $this->collectionName, $filter, $options); 276 277 return $operation->execute($server); 278 } 279 280 /** 281 * Gets the number of documents matching the filter. 282 *
-
APPPATH/classes/Model/CMarketplace.php [ 431 ] » MongoDB\Collection->count(arguments)
filter
array(3) ( "seller" => bool FALSE "active" => array(1) ( "$ne" => bool FALSE ) "removed" => array(1) ( "$ne" => bool TRUE ) )
426 return $coins; 427 428 } 429 public function get_market_count($uid) { 430 $ccoins = $this->db->selectCollection('coinmarket'); 431 return $ccoins->count(['seller' => $uid, 'active' => ['$ne' => false], 'removed' => ['$ne' => true]]); 432 } 433 434 public function get_orders($user, $page=1) { 435 $limit = 10; 436 $skip = ( $page - 1 ) * $limit;
-
APPPATH/classes/Model/User.php [ 883 ] » Model_CMarketplace->get_market_count(arguments)
0
bool FALSE
878 ]; 879 880 public function get_statistic() 881 { 882 $cmarket = new Model_CMarketplace; 883 $stat['store'] = $cmarket->get_market_count($this->get_id()); 884 $stat['cart'] = $cmarket->get_cart_count($this); 885 886 $this->empty_collection_stat['cart'] = $stat['cart']; 887 $this->empty_collection_stat['store'] = $stat['store']; 888
-
APPPATH/views/nav.php [ 5 ] » Model_User->get_statistic()
1 <? 2 $controller = Request::initial()->controller(); 3 $code = Request::initial()->param('code'); 4 $action = Request::initial()->action(); 5 $statistic = $user->get_statistic(); 6 7 if( $user->is_auth() ) { 8 $cmarket = new Model_CMarketplace; 9 $myorderscount = $cmarket->get_orders_count(['user' => $user->get_id(), 'state' => ['$exists' => true, '$nin' => ['cancel', 'rate', 'receive'] ] ]); 10 $marketorderscount = $cmarket->get_orders_count(['seller' => $user->get_id(), 'state' => ['$exists' => true, '$nin' => ['cancel', 'rate', 'receive'] ] ]);
-
APPPATH/views/header.php [ 65 ] » require_once(arguments)
0
string(55) "/www/coin-brothers.com/kohana/application/views/nav.php"
60 if(($iPod || $iPhone || $iPad) && $hide_android_panel < 3) { // && stripos($ua,'mobile') !== false) { 61 require_once 'ios_app.php'; 62 } 63 64 //if( in_array($controller, ["Marketplace", "Market", "Order", "Cart"] ) ) 65 require_once 'nav.php'; 66 //else 67 // require_once 'nav.old.php'; 68 69 require_once 'search/index_js.php'; 70
-
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0
string(58) "/www/coin-brothers.com/kohana/application/views/header.php"
56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean();
-
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)
0
string(58) "/www/coin-brothers.com/kohana/application/views/header.php"
1
array(3) ( "user" => object Model_User(3)
{ private db => object MongoDB\Database(6)
"auto_country" => string(0) "" "hide_search" => integer 1 ){ private databaseName => string(12) "coinbrothers" private manager => object MongoDB\Driver\Manager(0)
private empty_collection_stat => array(9) ( "doubles" => integer 0 "collection" => integer 0 "wishlist" => integer 0 "doubles_country" => integer 0 "collection_country" => integer 0 "wishlist_country" => integer 0 "feedback" => integer 0 "store" => integer 0 "cart" => integer 0 ) protected info => array(0) }{ }
private readConcern => object MongoDB\Driver\ReadConcern(0){ }
private readPreference => object MongoDB\Driver\ReadPreference(1){ public mode => string(7) "primary" }
private typeMap => array(3) ( "array" => string(23) "MongoDB\Model\BSONArray" "document" => string(26) "MongoDB\Model\BSONDocument" "root" => string(26) "MongoDB\Model\BSONDocument" ) private writeConcern => object MongoDB\Driver\WriteConcern(0){ }
}343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 }
-
SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()
223 */ 224 public function __toString() 225 { 226 try 227 { 228 return $this->render(); 229 } 230 catch (Exception $e) 231 { 232 /** 233 * Display the exception message.
-
APPPATH/classes/Controller/Marketplace.php [ 123 ] » Kohana_View->__toString()
118 $curr_user = $cauth->get_curr_user(); 119 120 echo View::factory('header')->set([ 121 'user' => $curr_user, 122 'auto_country' => '', 123 'hide_search' => 1 124 ]); 125 echo View::factory('marketplace/searchvue'); 126 echo View::factory('footer'); 127 } 128
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Marketplace->action_market_search()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Marketplace(10)
{ public auth_required => bool FALSE public module => string(11) "marketplace" public auto_render => bool FALSE public template => string(5) "index" public secure_actions => bool FALSE public benchmark => bool FALSE public request => object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(18) "marketplace/search" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "Marketplace" "action" => string(13) "market_search" ) protected _route_regex => string(24) "#^marketplace/search$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Marketplace" protected _action => string(13) "market_search" protected _uri => string(18) "marketplace/search" protected _external => bool FALSE protected _params => array(0) protected _get => array(10) ( "face_value" => string(3) "1/4" "currency" => string(5) "Rupie" "country" => string(31) "German East Africa (Tanganyika)" "province" => string(0) "" "material" => string(6) "silver" "year_from" => string(4) "1891" "year_to" => string(4) "1901" "series" => string(0) "" "topic" => string(0) "" "sort" => string(5) "price" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
public session => object Session_Native(5){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
public user => object Model_User(3){ private db => object MongoDB\Database(6)
}{ private databaseName => string(12) "coinbrothers" private manager => object MongoDB\Driver\Manager(0)
private empty_collection_stat => array(9) ( "doubles" => integer 0 "collection" => integer 0 "wishlist" => integer 0 "doubles_country" => integer 0 "collection_country" => integer 0 "wishlist_country" => integer 0 "feedback" => integer 0 "store" => integer 0 "cart" => integer 0 ) protected info => array(0) }{ }
private readConcern => object MongoDB\Driver\ReadConcern(0){ }
private readPreference => object MongoDB\Driver\ReadPreference(1){ public mode => string(7) "primary" }
private typeMap => array(3) ( "array" => string(23) "MongoDB\Model\BSONArray" "document" => string(26) "MongoDB\Model\BSONDocument" "root" => string(26) "MongoDB\Model\BSONDocument" ) private writeConcern => object MongoDB\Driver\WriteConcern(0){ }
}92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(18) "marketplace/search" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "Marketplace" "action" => string(13) "market_search" ) protected _route_regex => string(24) "#^marketplace/search$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Marketplace" protected _action => string(13) "market_search" protected _uri => string(18) "marketplace/search" protected _external => bool FALSE protected _params => array(0) protected _get => array(10) ( "face_value" => string(3) "1/4" "currency" => string(5) "Rupie" "country" => string(31) "German East Africa (Tanganyika)" "province" => string(0) "" "material" => string(6) "silver" "year_from" => string(4) "1891" "year_to" => string(4) "1901" "series" => string(0) "" "topic" => string(0) "" "sort" => string(5) "price" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(18) "marketplace/search" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "Marketplace" "action" => string(13) "market_search" ) protected _route_regex => string(24) "#^marketplace/search$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Marketplace" protected _action => string(13) "market_search" protected _uri => string(18) "marketplace/search" protected _external => bool FALSE protected _params => array(0) protected _get => array(10) ( "face_value" => string(3) "1/4" "currency" => string(5) "Rupie" "country" => string(31) "German East Africa (Tanganyika)" "province" => string(0) "" "material" => string(6) "silver" "year_from" => string(4) "1891" "year_to" => string(4) "1901" "series" => string(0) "" "topic" => string(0) "" "sort" => string(5) "price" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}981 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 982 ':uri' => $this->_uri, 983 )); 984 } 985 986 return $this->_client->execute($this); 987 } 988 989 /** 990 * Returns whether this request is the initial request Kohana received. 991 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 117 ] » Kohana_Request->execute()
112 /** 113 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 114 * If no source is specified, the URI will be automatically detected. 115 */ 116 echo Request::factory(TRUE, array(), FALSE) 117 ->execute() 118 ->send_headers(TRUE) 119 ->body(); 120 }