Skip to content

Instantly share code, notes, and snippets.

@ss23
Created September 6, 2013 04:16
Show Gist options
  • Save ss23/6459500 to your computer and use it in GitHub Desktop.
Save ss23/6459500 to your computer and use it in GitHub Desktop.
var_dump((array)$list);
array(14) {
["*request"]=>
object(SS_HTTPRequest)#4 (12) {
["url":protected]=>
string(7) "add-ons"
["dirParts":protected]=>
array(0) {
}
["extension":protected]=>
NULL
["httpMethod":protected]=>
string(3) "GET"
["getVars":protected]=>
array(2) {
["url"]=>
string(8) "/add-ons"
["search"]=>
string(4) "test"
}
["postVars":protected]=>
array(0) {
}
["headers":protected]=>
array(12) {
["Mod-Rewrite"]=>
string(2) "On"
["Host"]=>
string(23) "addons.silverstripe.org"
["X-Real-Ip"]=>
string(14) "202.160.48.160"
["X-Forwarded-For"]=>
string(14) "202.160.48.160"
["X-Forwarded-Host"]=>
string(23) "addons.silverstripe.org"
["Connection"]=>
string(5) "close"
["Cache-Control"]=>
string(9) "max-age=0"
["Accept"]=>
string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
["User-Agent"]=>
string(119) "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36"
["Accept-Encoding"]=>
string(17) "gzip,deflate,sdch"
["Accept-Language"]=>
string(14) "en-US,en;q=0.8"
["Cookie"]=>
string(296) "__utma=1.1722567325.1371522029.1377746700.1378256789.38; __utmz=1.1377746700.37.24.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); PHPSESSID=klv448d4v8q9464sqju90506f7; cms-panel-collapsed-cms-content-tools-ModelAdmin=false; cms-panel-collapsed-cms-menu=false; PastMember=1"
}
["body":protected]=>
string(0) ""
["allParams":protected]=>
array(3) {
["Action"]=>
NULL
["ID"]=>
NULL
["OtherID"]=>
NULL
}
["latestParams":protected]=>
array(3) {
["Action"]=>
NULL
["ID"]=>
NULL
["OtherID"]=>
NULL
}
["routeParams":protected]=>
array(1) {
["Controller"]=>
string(16) "AddonsController"
}
["unshiftedButParsedParts":protected]=>
int(2)
}
["*getVar"]=>
string(5) "start"
["*pageLength"]=>
int(15)
["*pageStart"]=>
NULL
["*totalItems"]=>
NULL
["*limitItems"]=>
bool(true)
["*list"]=>
object(SilverStripe\Elastica\ResultList)#1117 (9) {
["index":"SilverStripe\Elastica\ResultList":private]=>
object(Elastica\Index)#1118 (2) {
["_name":protected]=>
string(6) "addons"
["_client":protected]=>
object(Elastica\Client)#1033 (6) {
["_config":protected]=>
array(12) {
["host"]=>
NULL
["port"]=>
NULL
["path"]=>
NULL
["url"]=>
NULL
["proxy"]=>
NULL
["transport"]=>
NULL
["persistent"]=>
bool(true)
["timeout"]=>
NULL
["connections"]=>
array(0) {
}
["roundRobin"]=>
bool(false)
["log"]=>
bool(false)
["retryOnConflict"]=>
int(0)
}
["_connections":protected]=>
array(1) {
[0]=>
object(Elastica\Connection)#1034 (2) {
["_params":protected]=>
array(13) {
["config"]=>
array(1) {
["url"]=>
NULL
}
["host"]=>
NULL
["port"]=>
NULL
["path"]=>
NULL
["proxy"]=>
NULL
["transport"]=>
NULL
["persistent"]=>
bool(true)
["timeout"]=>
NULL
["connections"]=>
array(0) {
}
["roundRobin"]=>
bool(false)
["log"]=>
bool(false)
["retryOnConflict"]=>
int(0)
["enabled"]=>
bool(true)
}
["_rawParams":protected]=>
array(0) {
}
}
}
["_callback":protected]=>
NULL
["_lastRequest":protected]=>
NULL
["_lastResponse":protected]=>
NULL
["_logger":protected]=>
NULL
}
}
["query":"SilverStripe\Elastica\ResultList":private]=>
object(Elastica\Query)#1110 (2) {
["_params":protected]=>
array(2) {
["size"]=>
int(420)
["query"]=>
array(1) {
["match"]=>
array(1) {
["_all"]=>
string(4) "test"
}
}
}
["_rawParams":protected]=>
array(0) {
}
}
["failover":protected]=>
NULL
["customisedObject":protected]=>
NULL
["objCache":"ViewableData":private]=>
array(0) {
}
["class"]=>
NULL
["extension_instances":protected]=>
array(0) {
}
["beforeExtendCallbacks":protected]=>
array(0) {
}
["afterExtendCallbacks":protected]=>
array(0) {
}
}
["*failover"]=>
object(SilverStripe\Elastica\ResultList)#1117 (9) {
["index":"SilverStripe\Elastica\ResultList":private]=>
object(Elastica\Index)#1118 (2) {
["_name":protected]=>
string(6) "addons"
["_client":protected]=>
object(Elastica\Client)#1033 (6) {
["_config":protected]=>
array(12) {
["host"]=>
NULL
["port"]=>
NULL
["path"]=>
NULL
["url"]=>
NULL
["proxy"]=>
NULL
["transport"]=>
NULL
["persistent"]=>
bool(true)
["timeout"]=>
NULL
["connections"]=>
array(0) {
}
["roundRobin"]=>
bool(false)
["log"]=>
bool(false)
["retryOnConflict"]=>
int(0)
}
["_connections":protected]=>
array(1) {
[0]=>
object(Elastica\Connection)#1034 (2) {
["_params":protected]=>
array(13) {
["config"]=>
array(1) {
["url"]=>
NULL
}
["host"]=>
NULL
["port"]=>
NULL
["path"]=>
NULL
["proxy"]=>
NULL
["transport"]=>
NULL
["persistent"]=>
bool(true)
["timeout"]=>
NULL
["connections"]=>
array(0) {
}
["roundRobin"]=>
bool(false)
["log"]=>
bool(false)
["retryOnConflict"]=>
int(0)
["enabled"]=>
bool(true)
}
["_rawParams":protected]=>
array(0) {
}
}
}
["_callback":protected]=>
NULL
["_lastRequest":protected]=>
NULL
["_lastResponse":protected]=>
NULL
["_logger":protected]=>
NULL
}
}
["query":"SilverStripe\Elastica\ResultList":private]=>
object(Elastica\Query)#1110 (2) {
["_params":protected]=>
array(2) {
["size"]=>
int(420)
["query"]=>
array(1) {
["match"]=>
array(1) {
["_all"]=>
string(4) "test"
}
}
}
["_rawParams":protected]=>
array(0) {
}
}
["failover":protected]=>
NULL
["customisedObject":protected]=>
NULL
["objCache":"ViewableData":private]=>
array(0) {
}
["class"]=>
NULL
["extension_instances":protected]=>
array(0) {
}
["beforeExtendCallbacks":protected]=>
array(0) {
}
["afterExtendCallbacks":protected]=>
array(0) {
}
}
["*customisedObject"]=>
NULL
["ViewableDataobjCache"]=>
array(0) {
}
["class"]=>
string(13) "PaginatedList"
["*extension_instances"]=>
array(0) {
}
["*beforeExtendCallbacks"]=>
array(0) {
}
["*afterExtendCallbacks"]=>
array(0) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment