public function get_by_order_id($order_id = false)
{
$order_id = intval($order_id);
if ($order_id == false) {
return;
}
$params = array();
$table = $this->table;
$params['table'] = $table;
$params['order_id'] = $order_id;
$get = $this->app->database_manager->get($params);
if (!empty($get)) {
foreach ($get as $k => $item) {
if (is_array($item) and isset($item['custom_fields_data']) and $item['custom_fields_data'] != '') {
$item = $this->app->format->render_item_custom_fields_data($item);
}
$get[$k] = $item;
}
}
return $get;
}