Skip to content

Instantly share code, notes, and snippets.

@Nicholas-Cardot
Created March 3, 2018 01:53
Show Gist options
  • Save Nicholas-Cardot/d97cf6c88243fb9b2745a1d2edee19d3 to your computer and use it in GitHub Desktop.
Save Nicholas-Cardot/d97cf6c88243fb9b2745a1d2edee19d3 to your computer and use it in GitHub Desktop.
This is an example of an object which I'm trying to sort.
object(SWP_Options_Page)#542 (1) {
["tabs"]=>
&object(stdClass)#543 (4) {
["display"]=>
object(SWP_Options_Page_Tab)#544 (3) {
["name"]=>
string(7) "Display"
["priority"]=>
int(10)
["sections"]=>
object(stdClass)#545 (1) {
["share_counts"]=>
object(SWP_Options_Page_Section)#546 (5) {
["name"]=>
string(12) "Share Counts"
["description"]=>
string(68) "Use the toggles below to determine how to display your social proof."
["information_link"]=>
string(80) "http://mylink"
["priority"]=>
int(20)
["options"]=>
object(stdClass)#547 (2) {
["network_count"]=>
object(SWP_Option_Checkbox)#433 (6) {
["name"]=>
string(13) "Button Counts"
["type"]=>
string(8) "checkbox"
["default"]=>
bool(true)
["premium"]=>
bool(false)
["priority"]=>
int(10)
["size"]=>
string(10) "two-thirds"
}
["total_count"]=>
object(SWP_Option_Checkbox)#432 (6) {
["name"]=>
string(13) "Total Counts "
["type"]=>
string(8) "checkbox"
["default"]=>
bool(true)
["premium"]=>
bool(false)
["priority"]=>
int(20)
["size"]=>
string(10) "two-thirds"
}
}
}
}
}
["advanced"]=>
object(SWP_Options_Page_Tab)#431 (3) {
["name"]=>
string(8) "Advanced"
["priority"]=>
int(40)
["sections"]=>
object(stdClass)#430 (0) {
}
}
["styles"]=>
object(SWP_Options_Page_Tab)#429 (3) {
["name"]=>
string(6) "Styles"
["priority"]=>
int(20)
["sections"]=>
object(stdClass)#428 (0) {
}
}
["social_identity"]=>
object(SWP_Options_Page_Tab)#427 (3) {
["name"]=>
string(15) "Social Identity"
["priority"]=>
int(30)
["sections"]=>
object(stdClass)#426 (0) {
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment