Minor fixes to statement, services and internal things
Many misc updates
This commit is contained in:
@@ -11,5 +11,26 @@
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
class Model_Export extends ORMOSB {
|
||||
public function rules() {
|
||||
return array_merge(parent::rules(),array(
|
||||
'map_data'=>array(
|
||||
array('ORMOSB::serialize_array',array(':model',':field',':value')),
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
public function list_itemsnoexport() {
|
||||
$result = array();
|
||||
|
||||
$mo = ORM::factory('module',array('name'=>'product'));
|
||||
$p = ORM::factory('product')
|
||||
->order_by('id');
|
||||
|
||||
foreach ($p->find_all() as $po)
|
||||
if (! ORM::factory('export')->where('module_id','=',$mo->id)->where('item_id','=',$po->id)->find()->loaded())
|
||||
$result[$po->id] = $po;
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user