本文整理汇总了PHP中Invoice::sessionPersistent方法的典型用法代码示例。如果您正苦于以下问题:PHP Invoice::sessionPersistent方法的具体用法?PHP Invoice::sessionPersistent怎么用?PHP Invoice::sessionPersistent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Invoice
的用法示例。
在下文中一共展示了Invoice::sessionPersistent方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: generateContactInvoiceContent
/**
* A custom method within the Plugin to generate the content
*
*/
function generateContactInvoiceContent()
{
$output = '';
if (!is_object($_SESSION['do_invoice_list'])) {
$do_invoice_list = new Invoice();
$do_invoice_list->sessionPersistent("do_invoice_list", "index.php", OFUZ_TTL);
}
if ($_SESSION['do_invoice_list']->hasInvoicesForEntity($_SESSION['do_cont']->idcontact, 'Contact')) {
$user_settings = $_SESSION['do_User']->getChildUserSettings();
if ($user_settings->getNumRows()) {
while ($user_settings->next()) {
if ($user_settings->setting_name == 'currency' && $user_settings->setting_value != '') {
$currency = explode("-", $user_settings->setting_value);
$_SESSION['do_invoice_list']->currency_iso_code = $currency[0];
$_SESSION['do_invoice_list']->currency_sign = $currency[1];
//$_SESSION['do_invoice_list']->currency = $_SESSION['do_invoice_list']->currecy_sign ;
$_SESSION['do_invoice_list']->setCurrencyDisplay();
$_SESSION['do_invoice_list']->getCurrencyPostion();
}
}
}
$e_filter_inv = new Event("do_invoice_list->eventFilterInvoice");
$e_filter_inv->addParam("type", "Contact");
$e_filter_inv->addParam("idcontact", $_SESSION['do_cont']->idcontact);
$e_filter_inv->addParam("goto", "invoices.php");
$e_filter_inv->setLevel(10);
$output .= '<table width="100%">';
$output .= $_SESSION['do_invoice_list']->getInvoiceTotals($e_filter_inv, $_SESSION['do_cont']->idcontact);
$output .= '</table>';
} else {
$this->setIsActive(false);
}
return $output;
}
示例2: ContactNotes
/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/
$Author = 'SQLFusion LLC';
$Keywords = 'Keywords for search engine';
$Description = 'Description for search engine';
$background_color = 'white';
include_once 'config.php';
include_once 'includes/ofuz_check_access.script.inc.php';
$invoice_access = false;
$do_notes = new ContactNotes($GLOBALS['conx']);
$do_contact = new Contact($GLOBALS['conx']);
$do_company = new Company($GLOBALS['conx']);
$do_task = new Task($GLOBALS['conx']);
$do_task_category = new TaskCategory($GLOBALS['conx']);
$do_contact_task = new Contact();
$do_invoice = new Invoice();
$do_invoice->sessionPersistent("InvoiceEditSave", "index.php", OFUZ_TTL);
//$InvLine = new InvoiceLine();
//$InvLine->sessionPersistent("InvoiceLine", "index.php", OFUZ_TTL);
if (isset($_GET['id'])) {
$_SESSION['InvoiceEditSave']->getId((int) $_GET['id']);
}
$pageTitle = _('Edit Invoice # ') . $_SESSION['InvoiceEditSave']->num . ' :: Ofuz';
include_once 'includes/header.inc.php';
$inv_status = $_SESSION['InvoiceEditSave']->status;
if ($_SESSION['do_invoice']->isInvoiceOwner($_SESSION['InvoiceEditSave']->idinvoice, $_SESSION['do_User']->iduser)) {
$invoice_access = true;
}
$user_settings = $_SESSION['do_User']->getChildUserSettings();
if ($user_settings->getNumRows()) {
while ($user_settings->next()) {
if ($user_settings->setting_name == 'currency' && $user_settings->setting_value != '') {
示例3: ContactNotes
$pageTitle = _('Invoices') . ' :: Ofuz ';
$Author = 'SQLFusion LLC';
$Keywords = 'Keywords for search engine';
$Description = 'Description for search engine';
$background_color = 'white';
include_once 'includes/ofuz_check_access.script.inc.php';
include_once 'includes/header.inc.php';
$do_notes = new ContactNotes($GLOBALS['conx']);
$do_contact = new Contact($GLOBALS['conx']);
$do_company = new Company($GLOBALS['conx']);
$do_task = new Task($GLOBALS['conx']);
$do_task_category = new TaskCategory($GLOBALS['conx']);
$do_contact_task = new Contact();
if (!is_object($_SESSION['do_invoice_list'])) {
$do_invoice_list = new Invoice();
$do_invoice_list->sessionPersistent("do_invoice_list", "index.php", OFUZ_TTL);
}
//echo $_SESSION['do_invoice_list']->getSqlQuery();
$user_settings = $_SESSION['do_User']->getChildUserSettings();
if ($user_settings->getNumRows()) {
while ($user_settings->next()) {
if ($user_settings->setting_name == 'currency' && $user_settings->setting_value != '') {
$currency = explode("-", $user_settings->setting_value);
$_SESSION['do_invoice_list']->currency_iso_code = $currency[0];
$_SESSION['do_invoice_list']->currency_sign = $currency[1];
//$_SESSION['do_invoice_list']->currency = $_SESSION['do_invoice_list']->currecy_sign ;
$_SESSION['do_invoice_list']->setCurrencyDisplay();
$_SESSION['do_invoice_list']->getCurrencyPostion();
}
if ($user_settings->setting_name == 'inv_date_format' && $user_settings->setting_value != '') {
$_SESSION['do_invoice_list']->inv_dd_format = $user_settings->setting_value;
示例4: Invoice
* @package RadriaSampleSite
* @author Philippe Lewicki <phil@sqlfusion.com>
* @copyright SQLFusion LLC 2012
* @version 1.0
*/
$pageTitle = "Users :: Invoice :: Add";
$Author = "SQLFusion";
$Keywords = "Keywords for search engine";
$Description = "Description for search engine";
$background_color = "white";
$background_image = "";
include_once "config.php";
include "includes/header.inc.php";
$do_invoice = new Invoice();
if (!isset($_SESSION['do_invoice'])) {
$do_invoice->sessionPersistent('do_invoice', 'user_detail.php');
} else {
$do_invoice = $_SESSION['do_invoice'];
}
$do_invoice->iduser = $_SESSION['do_user']->iduser;
// after newaddForm() all call to: do_invoice->variable will output HTML form.
$do_invoice->newaddForm();
$do_invoice->initFields();
$do_invoice->form->addEventAction('do_invoice->eventSetInvoiceNumber', 771);
$do_invoice->form->addParam('goto', 'user_detail.php');
$do_invoice->form->addParam('errorpage', 'message.php');
echo $do_invoice->displayFormHeader();
echo $do_invoice->iduser;
// this will link the new invoice to the user
?>
示例5: Invoice
</div>
</td>
<td class="main_right">
<div class="mainheader">
<div class="pad20">
<span class="headline14">Add a quote</span>
</div>
</div>
<div class="contentfull">
<?php
if (!is_object($_SESSION['QuoteEditSave'])) {
$do_invoice = new Invoice();
$do_invoice->sessionPersistent("QuoteEditSave", "index.php", 36000);
}
$_SESSION['QuoteEditSave']->generateAddQuoteForm("invoicing.php");
?>
</div>
<div class="bottompad40"></div>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>