Skip to content

Instantly share code, notes, and snippets.

@ringmaster
Created April 25, 2012 13:46
Show Gist options
  • Save ringmaster/2489818 to your computer and use it in GitHub Desktop.
Save ringmaster/2489818 to your computer and use it in GitHub Desktop.
Query::__set_state(array(
'where' =>
QueryWhere::__set_state(array(
'operator' => 'AND',
'expressions' =>
array (
1 =>
QueryWhere::__set_state(array(
'operator' => 'AND',
'expressions' =>
array (
),
'parameters' =>
array (
),
)),
2 =>
QueryWhere::__set_state(array(
'operator' => 'AND',
'expressions' =>
array (
'perms_granted' =>
QueryWhere::__set_state(array(
'operator' => 'OR',
'expressions' =>
array (
'posts_permitted_types' => '{posts}.content_type IN (1,2,3,5,37,38)',
),
'parameters' =>
array (
),
)),
),
'parameters' =>
array (
),
)),
),
'parameters' =>
array (
),
)),
'primary_table' => '{posts}',
'fields' =>
array (
'id' => '{posts}.id AS id',
'slug' => '{posts}.slug AS slug',
'title' => '{posts}.title AS title',
'guid' => '{posts}.guid AS guid',
'content' => '{posts}.content AS content',
'cached_content' => '{posts}.cached_content AS cached_content',
'user_id' => '{posts}.user_id AS user_id',
'status' => '{posts}.status AS status',
'pubdate' => '{posts}.pubdate AS pubdate',
'updated' => '{posts}.updated AS updated',
'modified' => '{posts}.modified AS modified',
'content_type' => '{posts}.content_type AS content_type',
),
'joins' =>
array (
),
'join_params' =>
array (
),
'limit' => NULL,
'offset' => NULL,
'orderby' => 'pubdate DESC',
'groupby' => NULL,
'having' => NULL,
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment