/**
 * This function returns mySQL for given type
 * 
 * @author Fawaz Tahir <*****@*****.**>
 * @param string $type
 * @return string
 */
function return_object_order($type = null)
{
    if (is_null($type)) {
        return false;
    }
    $orders = object_manager_orders($type);
    if ($orders) {
        $current_order = $_GET['omo'] ? mysql_clean($_GET['omo']) : (int) 0;
        if (!$orders[$current_order]) {
            $current_order = 0;
        }
        if ($orders[$current_order]['order']) {
            return $orders[$current_order]['order'];
        }
    }
    return false;
}
/**
 * Gets photo manager orders
 * 
 * @return ARRAY
 */
function get_collection_manager_orders()
{
    return object_manager_orders('collection');
}
示例#3
0
/**
 * Gets photo manager orders
 * 
 * @return ARRAY
 */
function get_photo_manager_orders()
{
    return object_manager_orders('photo');
}