本文整理汇总了PHP中uri_assoc函数的典型用法代码示例。如果您正苦于以下问题:PHP uri_assoc函数的具体用法?PHP uri_assoc怎么用?PHP uri_assoc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了uri_assoc函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
function delete()
{
if (uri_assoc('payment_method_id', 4)) {
$this->mdl_payment_methods->delete(array('payment_method_id' => uri_assoc('payment_method_id', 4)));
}
$this->redir->redirect('payments/payment_methods');
}
示例2: delete
function delete()
{
if (uri_assoc('field_id')) {
$this->mdl_fields->delete(uri_assoc('field_id'));
}
$this->redir->redirect('fields');
}
示例3: get_table_headers
public function get_table_headers()
{
$order_by = uri_assoc('order_by');
$order = uri_assoc('order') == 'asc' ? 'desc' : 'asc';
$headers = array('client_id' => anchor('clients/index/order_by/client_id/order/' . $order, $this->lang->line('id')), 'client_name' => anchor('clients/index/order_by/client_name/order/' . $order, $this->lang->line('client')), 'client_email' => anchor('clients/index/order_by/client_email/order/' . $order, $this->lang->line('email_address')), 'client_phone' => anchor('clients/index/order_by/client_phone/order/' . $order, $this->lang->line('phone_number')), 'credit_amount' => anchor('clients/index/order_by/credit_amount/order/' . $order, $this->lang->line('credit_amount')), 'balance' => anchor('clients/index/order_by/balance/order/' . $order, $this->lang->line('balance')), 'user' => anchor('clients/index/order_by/user/order/' . $order, $this->lang->line('user')), 'client_active' => anchor('clients/index/order_by/client_active/order/' . $order, $this->lang->line('active')));
return $headers;
}
示例4: get_table_headers
public function get_table_headers()
{
$order_by = uri_assoc('order_by');
$order = uri_assoc('order') == 'asc' ? 'desc' : 'asc';
$headers = array('inventory_id' => anchor('inventory/index/order_by/inventory_id/order/' . $order, $this->lang->line('id')), 'inventory_type' => anchor('inventory/index/order_by/inventory_type/order/' . $order, $this->lang->line('type')), 'inventory_item' => anchor('inventory/index/order_by/inventory_item/order/' . $order, $this->lang->line('item')), 'inventory_stock' => anchor('inventory/index/order_by/inventory_stock/order/' . $order, $this->lang->line('stock')), 'inventory_price' => anchor('inventory/index/order_by/inventory_price/order/' . $order, $this->lang->line('price')));
return $headers;
}
示例5: delete
function delete()
{
if (uri_assoc('client_credit_id', 4)) {
$this->mdl_client_credits->delete(array('client_credit_id' => uri_assoc('client_credit_id', 4)));
}
$this->redir->redirect('payments/client_credits');
}
示例6: _get_results
function _get_results($params = array())
{
$search_hash = $this->session->userdata('search_hash');
$params = array_merge($params, $search_hash[uri_assoc('search_hash', 4)]);
$params['set_client'] = TRUE;
return $this->mdl_invoices->get($params);
}
示例7: delete
public function delete()
{
if (uri_assoc('expense_payment_type_id')) {
$this->mdl_expense_payment_type->delete(array('expense_payment_type_id' => uri_assoc('expense_payment_type_id')));
}
$this->redir->redirect('expenses/expense_payment_type');
}
示例8: delete
function delete()
{
if (uri_assoc('tax_rate_id')) {
$this->mdl_tax_rates->delete(uri_assoc('tax_rate_id'));
}
$this->redir->redirect('tax_rates');
}
示例9: delete
public function delete()
{
if (uri_assoc('expense_category_id')) {
$this->mdl_expense_category->delete(array('expense_category_id' => uri_assoc('expense_category_id')));
}
$this->redir->redirect('expenses/category');
}
示例10: delete
public function delete()
{
if (uri_assoc('bank_id')) {
$this->mdl_bank->delete(array('bank_id' => uri_assoc('bank_id')));
}
$this->redir->redirect('expenses/bank');
}
示例11: delete
function delete()
{
if (uri_assoc('invoice_status_id')) {
$this->mdl_invoice_statuses->delete(array('invoice_status_id' => uri_assoc('invoice_status_id')));
}
$this->redir->redirect('invoice_statuses');
}
示例12: delete
function delete()
{
if (uri_assoc('task_id', 3)) {
$this->mdl_tasks->delete(array('task_id' => uri_assoc('task_id', 3)));
}
$this->redir->redirect('tasks');
}
示例13: retrieve_uid_oid
/**
* Transforms and returs the given string. Spaces are replaced with underscores and only characters and numbers are left
*
* @access public
* @param $string string The given string
* @return string | false
* @example
* @see
*
* @author Damiano Venturin
* @copyright 2V S.r.l.
* @license GPL
* @link http://www.squadrainformatica.com/en/development#mcbsb MCB-SB official page
* @since Feb 5, 2012
*
*/
function retrieve_uid_oid()
{
$CI =& get_instance();
$uid = uri_assoc('uid');
$oid = uri_assoc('oid');
if (empty($uid) && empty($oid)) {
if (uri_assoc('client_id')) {
$client_id = uri_assoc('client_id');
//retrieving client_id from GET
} else {
if ($CI->input->get_post('client_id')) {
$client_id = $this->input->post('client_id');
}
//retrieving client_id from POST
}
}
if ($uid) {
$params = array('uid' => $uid, 'client_id' => $uid, 'client_id_key' => 'uid');
}
if ($oid) {
$params = array('oid' => $oid, 'client_id' => $oid, 'client_id_key' => 'oid');
}
if (isset($client_id) && $client_id) {
$params = array('client_id' => $client_id);
}
return isset($params) ? $params : null;
}
示例14: delete
public function delete()
{
if (uri_assoc('inventory_id')) {
$this->mdl_inventory->delete(array('inventory_id' => uri_assoc('inventory_id')));
}
$this->redir->redirect('inventory');
}
示例15: delete
public function delete()
{
if (uri_assoc('expense_provider_id')) {
$this->mdl_provider->delete(array('expense_provider_id' => uri_assoc('expense_provider_id')));
}
$this->redir->redirect('expenses/provider');
}