APPPATH/classes/Helper/Coin.php [ 3498 ]
3493 {
3494 $cauth = new Model_CAuth;
3495 $user = $cauth->get_curr_user();
3496
3497 $rulers = '';
3498 if ($coin->get_rulers()) {
3499 foreach ($coin->get_rulers() as $key => $ruler) {
3500 if (is_object($ruler)) $rulers .= ($rulers != '') ? ', ' . $ruler->get_name() : $ruler->get_name();
3501 }
3502 }
3503
-
APPPATH/classes/Helper/UserCollection.php [ 105 ] » Helper_Coin::get_snippet(arguments)
0
NULL
1
string(13) "profile_short"
100 101 public static function getWishlistCoinInfo($coin, $mintages, $curr_user) 102 { 103 $ccoin_mintage = new Model_CCoinMintage; 104 105 $info = Helper_Coin::get_snippet($coin, 'profile_short'); 106 foreach ($mintages as $mintageId => $mintage) { 107 $mintage = $mintageId && $mintageId != 'all' ? $ccoin_mintage->get_by_id($mintageId) : new Model_CoinMintage([]); 108 $mintages[$mintageId] = []; 109 $mintages[$mintageId]['year_info'] = Helper_Coin::get_mintage_title($info['year_info'], ['mintage' => $mintage->to_array()], $info['coin']); 110 $mintages[$mintageId]['id'] = $mintageId;
-
APPPATH/classes/Helper/UserCollection.php [ 135 ] » Helper_UserCollection::getWishlistCoinInfo(arguments)
0
NULL
1
array(1) ( "6184568d5ad47b60ea50a993" => integer 1 )
2
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){ }
}130 { 131 $ccoin = new Model_CCoin; 132 $coinsa = []; 133 foreach ($coins as $i => $collectionCoin) { 134 $coin = $ccoin->get_by_id($collectionCoin['coin']); 135 $info = self::getWishlistCoinInfo($coin, $collectionCoin['mintages_info']->getArrayCopy(), $curr_user); 136 $coinsa[] = $info; 137 } 138 139 return $coinsa; 140 }
-
APPPATH/classes/Controller/Collection.php [ 350 ] » Helper_UserCollection::getWishlistCoinsInfo(arguments)
0
array(4) ( 0 => object MongoDB\Model\BSONDocument(12)
{ public _id => object MongoDB\BSON\ObjectId(1)
1 => object MongoDB\Model\BSONDocument(12){ public oid => string(24) "61845706bc107a29bcff2fd3" }
public coin => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "5d0e8b815678af5f976ddad7" }
public user => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "6184553520d72f28ec442eb3" }
public mintages_info => object MongoDB\Model\BSONDocument(2){ public 5d0e8b805678af5f976ddad1 => integer 1 public 5d0e8b805678af5f976ddad2 => integer 1 }
public sum => integer 2 public country => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "53107679b3569e5c608b4570" }
public country_name => string(9) "Argentina" public province_name => string(0) "" public currency => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "5310767cb3569e5c608b4918" }
public currency_weight => integer 5 public face_value_float => float 1 public min_year => integer 1984 }{ public _id => object MongoDB\BSON\ObjectId(1)
2 => object MongoDB\Model\BSONDocument(12){ public oid => string(24) "61845706bc107a29bcff2fb5" }
public coin => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "5da45cbf5678af33d02a1656" }
public user => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "6184553520d72f28ec442eb3" }
public mintages_info => object MongoDB\Model\BSONDocument(17){ public 5da45cbe5678af33d02a1641 => integer 1 public 5da45cbe5678af33d02a1642 => integer 1 public 5da45cbe5678af33d02a1643 => integer 1 public 5da45cbe5678af33d02a1644 => integer 1 public 5da45cbe5678af33d02a1645 => integer 1 public 5da45cbe5678af33d02a1646 => integer 1 public 5da45cbe5678af33d02a1647 => integer 1 public 5da45cbe5678af33d02a1648 => integer 1 public 5da45cbe5678af33d02a1649 => integer 1 public 5da45cbe5678af33d02a164a => integer 1 public 5da45cbe5678af33d02a164b => integer 1 public 5da45cbe5678af33d02a164c => integer 1 public 5da45cbe5678af33d02a164d => integer 1 public 5da45cbe5678af33d02a164e => integer 1 public 5da45cbe5678af33d02a164f => integer 1 public 5da45cbe5678af33d02a1650 => integer 1 public 5da45cbe5678af33d02a1651 => integer 1 }
public sum => integer 17 public country => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "53107679b3569e5c608b4610" }
public country_name => string(11) "East Africa" public province_name => string(0) "" public currency => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "56c8bfda43ebca7c6795cc23" }
public currency_weight => integer 2 public face_value_float => float 1 public min_year => integer 1922 }{ public _id => object MongoDB\BSON\ObjectId(1)
3 => object MongoDB\Model\BSONDocument(12){ public oid => string(24) "61845706bc107a29bcff2f99" }
public coin => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "6184568f5ad47b60ea50a999" }
public user => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "6184553520d72f28ec442eb3" }
public mintages_info => object MongoDB\Model\BSONDocument(1){ public 6184568d5ad47b60ea50a993 => integer 1 }
public sum => integer 1 public country => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "5310767ab3569e5c608b4718" }
public country_name => string(5) "Italy" public province_name => string(0) "" public currency => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "6184568e5ad47b60ea50a997" }
public currency_weight => integer 0 public face_value_float => float 10 public min_year => integer 1941 }{ public _id => object MongoDB\BSON\ObjectId(1)
){ public oid => string(24) "61845706bc107a29bcff2ff1" }
public coin => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "5878d040bc6c79b7da7cd517" }
public user => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "6184553520d72f28ec442eb3" }
public mintages_info => object MongoDB\Model\BSONDocument(1){ public 5878d03fbc6c79b7da7cd511 => integer 1 }
public sum => integer 1 public country => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "5310767bb3569e5c608b4828" }
public country_name => string(8) "Thailand" public province_name => string(0) "" public currency => object MongoDB\BSON\ObjectId(1){ public oid => string(24) "5310767cb3569e5c608b4872" }
public currency_weight => integer 7 public face_value_float => float 1 public min_year => integer 1974 }1
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){ }
}345 $filter = []; 346 if ($country) { 347 $filter['country'] = new MongoDB\BSON\ObjectId($country); 348 } 349 350 $coinsList = Helper_UserCollection::getWishlistCoinsInfo($userCollection->coins($skip, $limit, $filter), $currentUser); 351 352 if ($count) { 353 echo $userCollection->coinsCount(false, $filter) / $limit; 354 die(); 355 }
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Collection->action_wishlist()
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_Collection(11)
{ public auth_required => bool FALSE public module => string(10) "collection" public auto_render => bool FALSE public page_size => integer 50 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(20) "people/<id>/wishlist" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(10) "Collection" "action" => string(8) "wishlist" ) protected _route_regex => string(42) "#^people/(?P<id>[^/.,;?\n]++)/wishlist$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(10) "Collection" protected _action => string(8) "wishlist" protected _uri => string(30) "people/famousghostboy/wishlist" protected _external => bool FALSE protected _params => array(1) ( "id" => string(14) "famousghostboy" ) protected _get => array(0) 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(20) "people/<id>/wishlist" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(10) "Collection" "action" => string(8) "wishlist" ) protected _route_regex => string(42) "#^people/(?P<id>[^/.,;?\n]++)/wishlist$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(10) "Collection" protected _action => string(8) "wishlist" protected _uri => string(30) "people/famousghostboy/wishlist" protected _external => bool FALSE protected _params => array(1) ( "id" => string(14) "famousghostboy" ) protected _get => array(0) 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(20) "people/<id>/wishlist" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(10) "Collection" "action" => string(8) "wishlist" ) protected _route_regex => string(42) "#^people/(?P<id>[^/.,;?\n]++)/wishlist$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(10) "Collection" protected _action => string(8) "wishlist" protected _uri => string(30) "people/famousghostboy/wishlist" protected _external => bool FALSE protected _params => array(1) ( "id" => string(14) "famousghostboy" ) protected _get => array(0) 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 }