protected function query($context) { $q = new NuSelect('lime_image_meta as I'); $q->field(array("id", "meta", "context_type", "context_id")); $q->where("I.context_type='{$context->type_id}'"); $q->where("I.context_id={$context->id}"); return $q; }
function __construct() { parent::__construct("lime_types T"); $this->order("T.id"); }