This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/export/classes/Model/Export.php

32 lines
784 B
PHP
Raw Normal View History

2010-11-29 22:41:08 +00:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class supports OSB exporting by rending the exportable items.
*
2013-03-19 22:35:19 +00:00
* @package Export
* @category Helpers
2010-11-29 22:41:08 +00:00
* @author Deon George
2013-03-19 22:35:19 +00:00
* @copyright (c) 2009-2013 Open Source Billing
2010-11-29 22:41:08 +00:00
* @license http://dev.osbill.net/license.html
*/
class Model_Export extends ORM_OSB {
protected $_serialize_column = array(
'map_data',
);
public function list_itemsnoexport() {
$result = array();
2012-11-09 23:13:57 +00:00
$mo = ORM::factory('Module',array('name'=>'product'));
$p = ORM::factory('Product')
->order_by('id');
foreach ($p->find_all() as $po)
2012-11-09 23:13:57 +00:00
if (! ORM::factory('Export')->where('module_id','=',$mo->id)->where('item_id','=',$po->id)->find()->loaded())
$result[$po->id] = $po;
return $result;
}
2010-11-29 22:41:08 +00:00
}
2011-08-16 02:27:19 +00:00
?>