예제 #1
0
 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;
 }
예제 #2
0
 function __construct()
 {
     parent::__construct("lime_types T");
     $this->order("T.id");
 }