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


PHP oseExit函数代码示例

本文整理汇总了PHP中oseExit函数的典型用法代码示例。如果您正苦于以下问题:PHP oseExit函数的具体用法?PHP oseExit怎么用?PHP oseExit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: getMSCs

	public static function getMSCs()
	{
		$my = JFactory::getUser();
		$member_id = $my->id;
		$result = array();
		$db= oseDB :: instance();
		$query= " SELECT acl.id, acl.title FROM `#__osemsc_member_history` AS omh" 
			   ." INNER JOIN `#__osemsc_acl` AS acl" 
			   ." ON omh.`msc_id` = acl.`id`" 
			   ." WHERE omh.`member_id` = '{$member_id}'" 
			   ." GROUP BY acl.`id`";
		$db->setQuery($query);
		$items = oseDB :: loadList();
		if(count($items) < 1)
		{
			$result['total'] = 0;
			$result['results'] = '';
		}else
		{
			$result['total'] = count($items);
			$result['results'] = $items;
		}	
		$result = oseJson :: encode($result);
		oseExit($result);
	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:25,代码来源:member.join_history.php

示例2: __call

 function __call($name, $args)
 {
     if (isset($this->task[$name])) {
         return call_user_func_array(array($this, $this->task[$name]), $args);
     } else {
         oseExit($name . 'Error');
     }
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:8,代码来源:payment.php

示例3: oseCheckToken

function oseCheckToken()
{
    $tokenCheck = JRequest::checkToken();
    if (empty($tokenCheck)) {
        $result['content'] = 'Token is invalid!';
        $result = oseJson::encode($result);
        oseExit($result);
    }
}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:9,代码来源:oseMethods.php

示例4: getGroups

 public static function getGroups($params = array())
 {
     $msc_id = JRequest::getInt('msc_id', 0);
     $msc = oseRegistry::call('msc');
     $item = $msc->getExtInfo($msc_id, 'jgroup', 'obj');
     $jgroup_id = oseObject::getValue($item, 'jgroup_id', null);
     $gid = JHtml::_('access.usergroups', 'jgroup_jgroup_id', $jgroup_id, true);
     oseExit($gid);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:9,代码来源:panel.jgroup.php

示例5: getTerm

	function getTerm()
	{
		$id = JRequest::getInt('id',0);

		$terms = oseRegistry::call('member')->getInstance('Email')->getTerm($id);
		$terms = str_replace("../", JURI::root(), $terms);
		$result = empty($terms)?'':$terms;
		$result = oseJson::encode($result);
		oseExit($result);
	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:10,代码来源:register.terms.php

示例6: getOptions

 function getOptions()
 {
     $model = $this->getModel('daily');
     $result = $model->getOptions();
     if (count($result['results']) < 1) {
         $result['total'] = 0;
     }
     $result = oseJSON::encode($result);
     oseExit($result);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:10,代码来源:daily.php

示例7: getInstance

 public static function getInstance($type)
 {
     $className = "oseContent{$type}";
     if (class_exists($className)) {
         static $instance;
         if (!$instance instanceof $className) {
             $instance = new $className();
         }
         return $instance;
     } else {
         oseExit('Can Not Get the Instance of OSEFILE');
     }
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:13,代码来源:content.php

示例8: getOwnMsc

 function getOwnMsc()
 {
     $model = $this->getModel('member');
     $items = $model->getOwnMsc();
     $total = count($items);
     if ($total > 0) {
         $result['total'] = $total;
         $result['results'] = $items;
     } else {
         $result['total'] = 0;
         $result['results'] = null;
     }
     $result = oseJson::encode($result);
     oseExit($result);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:15,代码来源:member.php

示例9: getList

 function getList()
 {
     $model = $this->getModel('levels');
     $results = $model->getList();
     $result = array();
     if (count($results) > 0) {
         $result['total'] = count($results);
         $result['results'] = $results;
     } else {
         $result['total'] = 0;
         $result['results'] = array();
     }
     $result = oseJson::encode($result);
     oseExit($result);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:15,代码来源:levels.php

示例10: __call

 function __call($name, $args)
 {
     if (isset($this->task[$name])) {
         return call_user_func_array(array($this, $this->task[$name]), $args);
     } else {
         $t = debug_backtrace(false);
         foreach ($t as $d) {
             if (isset($d['file'])) {
                 echo $d['file'] . ' ' . $d['function'] . ' line:' . $d['line'];
                 echo "<br \\>";
             }
         }
         echo get_class($this) . '::' . $name . ' Error';
         oseExit();
     }
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:16,代码来源:oseObject.php

示例11: getFaith

	function getFaith()
	{
		$id = JRequest::getInt('id',0);
		$db= oseDB::instance();
		
		$query = " SELECT * FROM `#__osemsc_email` "
				." WHERE type = 'faith' AND id = {$id} "
				;
		
		$db->setQuery($query);
		
		$term = oseDB::loadItem();
		
		$result = empty($term)?'':$term;
		
		$result = oseJson::encode($result);
		
		oseExit($result);
	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:19,代码来源:register.faith.php

示例12: __construct

 function __construct($orderInfo, $pgwParams, $testMode = false)
 {
     parent::__construct();
     $this->orderInfo = $orderInfo;
     $this->test = $testMode;
     if ($testMode) {
         $this->eWayCustomerID = '87654321';
         $this->eWayUsername = 'test@eway.com.au';
         $this->eWayPassword = 'test123';
         $this->soap_link = 'https://www.eway.com.au/gateway/rebill/test/managerebill_test.asmx';
     } else {
         $currency = oseObject::getValue($this->orderInfo, 'payment_currency');
         $this->eWayCustomerID = oseObject::getValue($pgwParams, "eWayCustomerID_{$currency}");
         $this->eWayUsername = oseObject::getValue($pgwParams, "eWayUsername_{$currency}");
         $this->eWayPassword = oseObject::getValue($pgwParams, "eWayPassword_{$currency}");
         $this->soap_link = 'https://www.eway.com.au/gateway/rebill/managerebill.asmx';
     }
     if (empty($this->eWayCustomerID)) {
         oseExit(getErrorMessage('cc', 00, 'Since the currency you are going to pay is not supported, the transaction will be aborted!'));
     }
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:21,代码来源:osePaymentOrdereWay.php

示例13: generateOrderView

	function generateOrderView() {
		$order_id = JRequest::getInt('order_id', 0);
		$my = JFactory::getUser();
		$where = array();
		$where[] = " `order_id` = {$order_id}";
		$where[] = " `user_id` = {$my->id}";
		$orderInfo = oseRegistry::call('payment')->getOrder($where, 'obj');
		if (empty($orderInfo)) {
			$result = array();
			$result['title'] = 'Error';
			$result['content'] = 'Error';
			oseExit('Error');
		}
		$receipt = oseRegistry::call('member')->getReceipt($orderInfo);
		$document = &JFactory::getDocument();
		$document->setTitle($receipt->subject);
		$document->setName('Invoice-#' . $order_id);
		$document->setDescription('Invoice-#' . $order_id);
		$document->setMetaData('keywords', 'Invoice');
		// prepare header lines
		$document->setHeader('Invoice Create Date:' . $orderInfo->create_date);
		echo $receipt->body;
	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:23,代码来源:view.pdf.php

示例14: getCouponHistory

 function getCouponHistory()
 {
     $db = oseDB::instance();
     $id = JRequest::getInt('id', 0);
     $start = JRequest::getInt('start', 0);
     $limit = JRequest::getInt('limit', 25);
     $paid = JRequest::getInt('paid', -1);
     $where = array();
     $where[] = ' c.`coupon_id` = ' . $db->Quote($id);
     if ($paid >= 0) {
         $where[] = ' c.`paid` = ' . $db->Quote($paid);
     }
     $where = oseDB::implodeWhere($where);
     $query = " SELECT count(*) FROM `#__osemsc_coupon_user` AS c" . $where;
     $db->setQuery($query);
     $total = $db->loadResult();
     $query = " SELECT c.* FROM `#__osemsc_coupon_user` AS c" . $where;
     $db->setQuery($query, $start, $limit);
     $items = $db->loadObjectlist();
     foreach ($items as $item) {
         $user_id = $item->user_id;
         $query = " SELECT username FROM `#__users`" . " WHERE `id` = '{$user_id}'";
         $db->setQuery($query);
         $username = $db->loadResult();
         $item->username = empty($username) ? 'Guest' : $username;
     }
     $result = array();
     $result['total'] = $total;
     $result['results'] = $items;
     $result = oseJSON::encode($result);
     oseExit($result);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:32,代码来源:coupons.php

示例15: saveOption

	function saveOption()
	{
		$config = osemscPublic::getConfig('register','obj');
		$msc_id = JRequest::getInt('msc_id',0);
		$msc_option = JRequest::getCmd('msc_option',null);

		if($config->register_form == 'onestep')
		{
			$cart = oseMscPublic::getCart();

			//$cart = oseMscPublic::getCart();
			$item = array('entry_id'=>$msc_id,'entry_type'=>'msc','msc_option'=>$msc_option);
			$cart->addItem($item['entry_id'],$item['entry_type'],$item);
			$cart->update();
		}

		oseExit(true);
	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:18,代码来源:register.msc.php


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