where('prod_plugin_file','=',$this->plugin()) ->and_where('prod_plugin_data','=',$this); if ($active) $x->where_active(); return $x->find_all(); } /** * Form info for admins to update with plugin data */ abstract public function render_edit(); /** * Form used during service ordering */ public function render_order() { return View::factory(sprintf('product/plugin/%s/order',$this->plugin())); } /** * View the details of the product */ public function render_view() { return View::factory(sprintf('product/plugin/%s/view',$this->plugin()))->set('o',$this); } abstract public function supplier(); } ?>