当前位置: 首页>>代码示例>>PHP>>正文


PHP URLBuilder::setURL方法代码示例

本文整理汇总了PHP中URLBuilder::setURL方法的典型用法代码示例。如果您正苦于以下问题:PHP URLBuilder::setURL方法的具体用法?PHP URLBuilder::setURL怎么用?PHP URLBuilder::setURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在URLBuilder的用法示例。


在下文中一共展示了URLBuilder::setURL方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ini_set

    $permission->Redirect(FALSE);
    //Redirect
}
$smarty->assign('title', TTi18n::gettext($title = 'TimeSheet Summary Report'));
// See index.php
if (isset($config_vars['other']['report_maximum_execution_limit']) and $config_vars['other']['report_maximum_execution_limit'] != '') {
    ini_set('max_execution_time', $config_vars['other']['report_maximum_execution_limit']);
}
if (isset($config_vars['other']['report_maximum_memory_limit']) and $config_vars['other']['report_maximum_memory_limit'] != '') {
    ini_set('memory_limit', $config_vars['other']['report_maximum_memory_limit']);
}
/*
 * Get FORM variables
 */
extract(FormVariables::GetVariables(array('action', 'generic_data', 'filter_data')));
URLBuilder::setURL($_SERVER['SCRIPT_NAME'], array('filter_data' => $filter_data));
$static_columns = array('-1000-full_name' => TTi18n::gettext('Full Name'), '-1002-employee_number' => TTi18n::gettext('Employee #'), '-1005-status' => TTi18n::gettext('Status'), '-1010-title' => TTi18n::gettext('Title'), '-1020-province' => TTi18n::gettext('Province/State'), '-1030-country' => TTi18n::gettext('Country'), '-1039-group' => TTi18n::gettext('Group'), '-1040-default_branch' => TTi18n::gettext('Default Branch'), '-1050-default_department' => TTi18n::gettext('Default Department'), '-1060-verified_time_sheet' => TTi18n::gettext('Verified TimeSheet'), '-1062-pending_request' => TTi18n::gettext('Pending Requests'), '-1065-pay_period' => TTi18n::gettext('Pay Period'));
$columns = array('-1070-schedule_working' => TTi18n::gettext('Scheduled Time'), '-1080-schedule_absence' => TTi18n::gettext('Scheduled Absence'), '-1085-worked_days' => TTi18n::gettext('Worked Days'), '-1090-worked_time' => TTi18n::gettext('Worked Time'), '-1100-actual_time' => TTi18n::gettext('Actual Time'), '-1110-actual_time_diff' => TTi18n::gettext('Actual Time Difference'), '-1120-actual_time_diff_wage' => TTi18n::gettext('Actual Time Difference Wage'), '-1130-paid_time' => TTi18n::gettext('Paid Time'), '-1140-regular_time' => TTi18n::gettext('Regular Time'));
$columns = Misc::prependArray($static_columns, $columns);
//Get all Overtime policies.
$otplf = TTnew('OverTimePolicyListFactory');
$otplf->getByCompanyId($current_company->getId());
if ($otplf->getRecordCount() > 0) {
    foreach ($otplf as $otp_obj) {
        $otp_columns['over_time_policy-' . $otp_obj->getId()] = $otp_obj->getName();
    }
    $columns = array_merge($columns, $otp_columns);
}
//Get all Premium policies.
$pplf = TTnew('PremiumPolicyListFactory');
$pplf->getByCompanyId($current_company->getId());
开发者ID:alachaum,项目名称:timetrex,代码行数:31,代码来源:TimesheetSummary.php

示例2: extract

 case 'search_form_search':
     Debug::Text('Action: ' . $action, __FILE__, __LINE__, __METHOD__, 10);
     $saved_search_id = UserGenericDataFactory::searchFormDataHandler($action, $filter_data, URLBuilder::getURL(NULL, 'RecurringScheduleControlList.php'));
 default:
     BreadCrumb::setCrumb($title);
     extract(UserGenericDataFactory::getSearchFormData($saved_search_id, $sort_column));
     Debug::Text('Sort Column: ' . $sort_column, __FILE__, __LINE__, __METHOD__, 10);
     Debug::Text('Saved Search ID: ' . $saved_search_id, __FILE__, __LINE__, __METHOD__, 10);
     if (isset($filter_template_id) and $filter_template_id != '') {
         $filter_data['template_id'] = array($filter_template_id);
     }
     $sort_array = NULL;
     if ($sort_column != '') {
         $sort_array = array(Misc::trimSortPrefix($sort_column) => $sort_order);
     }
     URLBuilder::setURL($_SERVER['SCRIPT_NAME'], array('sort_column' => Misc::trimSortPrefix($sort_column), 'sort_order' => $sort_order, 'saved_search_id' => $saved_search_id, 'page' => $page));
     $rsclf = new RecurringScheduleControlListFactory();
     $ulf = new UserListFactory();
     if ($permission->Check('recurring_schedule', 'view') == FALSE) {
         if ($permission->Check('recurring_schedule', 'view_child')) {
             $filter_data['permission_children_ids'] = $permission_children_ids;
         }
         if ($permission->Check('recurring_schedule', 'view_own')) {
             $filter_data['permission_children_ids'][] = $current_user->getId();
         }
     }
     $rsclf->getSearchByCompanyIdAndArrayCriteria($current_company->getId(), $filter_data, $current_user_prefs->getItemsPerPage(), $page, NULL, $sort_array);
     $pager = new Pager($rsclf);
     $utlf = new UserTitleListFactory();
     $utlf->getByCompanyId($current_company->getId());
     $title_options = $utlf->getArrayByListFactory($utlf, FALSE, TRUE);
开发者ID:J-P-Hanafin,项目名称:TimeTrex-1,代码行数:31,代码来源:RecurringScheduleControlList.php

示例3: extract

 * $Id: PremiumPolicyList.php 5519 2011-11-15 19:28:49Z ipso $
 * $Date: 2011-11-15 11:28:49 -0800 (Tue, 15 Nov 2011) $
 */
require_once '../../includes/global.inc.php';
require_once Environment::getBasePath() . 'includes/Interface.inc.php';
if (!$permission->Check('premium_policy', 'enabled') or !($permission->Check('premium_policy', 'view') or $permission->Check('premium_policy', 'view_own'))) {
    $permission->Redirect(FALSE);
    //Redirect
}
$smarty->assign('title', TTi18n::gettext($title = 'Premium Policy List'));
// See index.php
/*
 * Get FORM variables
 */
extract(FormVariables::GetVariables(array('action', 'page', 'sort_column', 'sort_order', 'ids')));
URLBuilder::setURL($_SERVER['SCRIPT_NAME'], array('sort_column' => $sort_column, 'sort_order' => $sort_order, 'page' => $page));
$sort_array = NULL;
if ($sort_column != '') {
    $sort_array = array($sort_column => $sort_order);
}
Debug::Arr($ids, 'Selected Objects', __FILE__, __LINE__, __METHOD__, 10);
$action = Misc::findSubmitButton();
switch ($action) {
    case 'add':
        Redirect::Page(URLBuilder::getURL(NULL, 'EditPremiumPolicy.php', FALSE));
        break;
    case 'delete':
    case 'undelete':
        if (strtolower($action) == 'delete') {
            $delete = TRUE;
        } else {
开发者ID:alachaum,项目名称:timetrex,代码行数:31,代码来源:PremiumPolicyList.php

示例4: TTnew

         }
         //$mcf->FailTransaction();
         $mcf->CommitTransaction();
     }
     Redirect::Page(URLBuilder::getURL(array('filter_folder_id' => $filter_folder_id), 'UserMessageList.php'));
     break;
 default:
     $mclf = TTnew('MessageControlListFactory');
     $folder_options = $mclf->getOptions('folder');
     Debug::text('Filter Folder ID: ' . $filter_folder_id, __FILE__, __LINE__, __METHOD__, 9);
     if (!isset($filter_folder_id) or !in_array($filter_folder_id, array_keys($folder_options))) {
         Debug::text('Invalid Folder, using default ', __FILE__, __LINE__, __METHOD__, 9);
         $filter_folder_id = 10;
     }
     //Make sure folder and sort columns stays as we switch pages.
     URLBuilder::setURL(NULL, array('filter_folder_id' => $filter_folder_id, 'sort_column' => $sort_column, 'sort_order' => $sort_order));
     $mclf->getByCompanyIdAndUserIdAndFolder($current_user->getCompany(), $current_user->getId(), $filter_folder_id, $current_user_prefs->getItemsPerPage(), $page, NULL, $sort_array);
     $pager = new Pager($mclf);
     if ($mclf->getRecordCount() > 0) {
         $object_name_options = $mclf->getOptions('object_name');
         foreach ($mclf as $message) {
             //Get user info
             $user_id = NULL;
             $user_full_name = NULL;
             if ($filter_folder_id == 10) {
                 //Inbox
                 $user_id = $message->getColumn('from_user_id');
                 $user_full_name = Misc::getFullName($message->getColumn('from_first_name'), $message->getColumn('from_middle_name'), $message->getColumn('from_last_name'));
             } else {
                 //Sent
                 $user_id = $message->getColumn('to_user_id');
开发者ID:alachaum,项目名称:timetrex,代码行数:31,代码来源:UserMessageList.php

示例5: elseif

}
if ($filter_date != '') {
    $filter_date = TTDate::getBeginDayEpoch(TTDate::parseDateTime($filter_date));
}
if (isset($prev_day)) {
    $filter_date = TTDate::getBeginDayEpoch($filter_date - 86400);
} elseif (isset($next_day)) {
    $filter_date = TTDate::getBeginDayEpoch($filter_date + 86400);
}
if (isset($prev_week)) {
    $filter_date = TTDate::getBeginDayEpoch($filter_date - 86400 * 7);
} elseif (isset($next_week)) {
    $filter_date = TTDate::getBeginDayEpoch($filter_date + 86400 * 7);
}
//This must be below any filter_date modifications
URLBuilder::setURL($_SERVER['SCRIPT_NAME'], array('filter_date' => $filter_date, 'filter_user_id' => $filter_user_id, 'filter_system_time' => $filter_system_time, 'sort_column' => $sort_column, 'sort_order' => $sort_order, 'page' => $page));
$sort_array = NULL;
if ($sort_column != '') {
    $sort_array = array($sort_column => $sort_order);
}
Debug::Arr($ids, 'Selected Objects', __FILE__, __LINE__, __METHOD__, 10);
switch ($action) {
    case 'add':
        //Redirect::Page( URLBuilder::getURL(array('user_id' => $user_id), 'EditUserWage.php', FALSE) );
        break;
    case 'delete' or 'undelete':
        if (strtolower($action) == 'delete') {
            $delete = TRUE;
        } else {
            $delete = FALSE;
        }
开发者ID:J-P-Hanafin,项目名称:TimeTrex-1,代码行数:31,代码来源:UserDateTotalList.php

示例6: extract

    $permission->Redirect(FALSE);
    //Redirect
}
$smarty->assign('title', TTi18n::gettext($title = 'Accrual List'));
// See index.php
BreadCrumb::setCrumb($title);
/*
 * Get FORM variables
 */
extract(FormVariables::GetVariables(array('action', 'page', 'sort_column', 'sort_order', 'user_id', 'accrual_policy_id', 'ids')));
if ($permission->Check('accrual', 'view') or $permission->Check('accrual', 'view_child')) {
    $user_id = $user_id;
} else {
    $user_id = $current_user->getId();
}
URLBuilder::setURL($_SERVER['SCRIPT_NAME'], array('user_id' => $user_id, 'accrual_policy_id' => $accrual_policy_id, 'sort_column' => $sort_column, 'sort_order' => $sort_order, 'page' => $page));
$sort_array = NULL;
if ($sort_column != '') {
    $sort_array = array($sort_column => $sort_order);
}
Debug::Arr($ids, 'Selected Objects', __FILE__, __LINE__, __METHOD__, 10);
$action = Misc::findSubmitButton();
switch ($action) {
    case 'add':
        Redirect::Page(URLBuilder::getURL(NULL, 'EditUserAccrual.php'));
        break;
    case 'delete':
    case 'undelete':
        if (strtolower($action) == 'delete') {
            $delete = TRUE;
        } else {
开发者ID:alachaum,项目名称:timetrex,代码行数:31,代码来源:ViewUserAccrualList.php

示例7: extract

//Debug::setVerbosity( 11 );
/*
if ( !$permission->Check('user','enabled')
		OR !( $permission->Check('user','view') OR $permission->Check('user','view_own') ) ) {

	$permission->Redirect( FALSE ); //Redirect
}
*/
$smarty->assign('title', TTi18n::gettext($title = 'Status Report'));
// See index.php
BreadCrumb::setCrumb($title);
/*
 * Get FORM variables
 */
extract(FormVariables::GetVariables(array('batch_id', 'batch_title', 'batch_next_page', 'action', 'page', 'sort_column', 'sort_order')));
URLBuilder::setURL($_SERVER['SCRIPT_NAME'], array('sort_column' => $sort_column, 'sort_order' => $sort_order, 'page' => $page, 'batch_id' => $batch_id, 'batch_title' => $batch_title, 'batch_next_page' => $batch_next_page));
$sort_array = NULL;
if ($sort_column != '') {
    $sort_array = array($sort_column => $sort_order);
}
switch ($action) {
    default:
        Debug::Text('Next Page: ' . urldecode($batch_next_page), __FILE__, __LINE__, __METHOD__, 10);
        if ($batch_id != '') {
            $ugslf = new UserGenericStatusListFactory();
            $ugslf->getByUserIdAndBatchId($current_user->getId(), $batch_id, $current_user_prefs->getItemsPerPage(), $page, NULL, $sort_array);
            //var_dump($ugslf);
            Debug::Text('Record Count: ' . $ugslf->getRecordCount(), __FILE__, __LINE__, __METHOD__, 10);
            $pager = new Pager($ugslf);
            if ($ugslf->getRecordCount() > 0) {
                $status_count_arr = $ugslf->getStatusCountArrayByUserIdAndBatchId($current_user->getId(), $batch_id);
开发者ID:J-P-Hanafin,项目名称:TimeTrex-1,代码行数:31,代码来源:UserGenericStatusList.php

示例8: RecurringPayStubAmendmentListFactory

        } else {
            $delete = FALSE;
        }
        $rpsalf = new RecurringPayStubAmendmentListFactory();
        foreach ($ids as $id) {
            $rpsalf->getById($id);
            foreach ($rpsalf as $recurring_pay_stub_amendment) {
                $recurring_pay_stub_amendment->setDeleted($delete);
                $recurring_pay_stub_amendment->Save();
            }
        }
        unset($recurring_pay_stub_amendment);
        Redirect::Page(URLBuilder::getURL(NULL, 'RecurringPayStubAmendmentList.php', FALSE));
        break;
    default:
        URLBuilder::setURL(NULL, array('sort_column' => $sort_column, 'sort_order' => $sort_order));
        $rpsalf = new RecurringPayStubAmendmentListFactory();
        $rpsalf->getByCompanyId($current_company->getId(), $current_user_prefs->getItemsPerPage(), $page, NULL, $sort_array);
        $pager = new Pager($rpsalf);
        $psealf = new PayStubEntryAccountListFactory();
        foreach ($rpsalf as $recurring_pay_stub_amendment) {
            $recurring_pay_stub_amendments[] = array('id' => $recurring_pay_stub_amendment->GetId(), 'name' => $recurring_pay_stub_amendment->getName(), 'description' => $recurring_pay_stub_amendment->getDescription(), 'status' => Option::getByKey($recurring_pay_stub_amendment->getStatus(), $recurring_pay_stub_amendment->getOptions('status')), 'frequency' => Option::getByKey($recurring_pay_stub_amendment->getFrequency(), $recurring_pay_stub_amendment->getOptions('frequency')), 'pay_stub_entry_name' => $psealf->getById($recurring_pay_stub_amendment->getPayStubEntryNameId())->getCurrent()->getName(), 'deleted' => $recurring_pay_stub_amendment->getDeleted());
        }
        $smarty->assign_by_ref('recurring_pay_stub_amendments', $recurring_pay_stub_amendments);
        $smarty->assign_by_ref('sort_column', $sort_column);
        $smarty->assign_by_ref('sort_order', $sort_order);
        $smarty->assign_by_ref('paging_data', $pager->getPageVariables());
        $smarty->assign_by_ref('user_id', $user_id);
        break;
}
$smarty->display('pay_stub_amendment/RecurringPayStubAmendmentList.tpl');
开发者ID:J-P-Hanafin,项目名称:TimeTrex-1,代码行数:31,代码来源:RecurringPayStubAmendmentList.php


注:本文中的URLBuilder::setURL方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。