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


PHP ExceptionHandler::GetExceptionsToString方法代码示例

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


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

示例1: SaveTemplate

function SaveTemplate()
{
    $pdo = PdoDataAccess::getPdoObject();
    $pdo->beginTransaction();
    $CorrectContent = CNT_templates::CorrectTemplateContentItems($_POST['TemplateContent']);
    $obj = new CNT_templates();
    $obj->TemplateContent = $CorrectContent;
    $obj->TemplateTitle = $_POST['TemplateTitle'];
    if ($_POST['TemplateID'] > 0) {
        $obj->TemplateID = $_POST['TemplateID'];
        $result = $obj->Edit($pdo);
    } else {
        $result = $obj->Add($pdo);
    }
    if (!$result) {
        $pdo->rollBack();
        print_r(ExceptionHandler::PopAllExceptions());
        //echo PdoDataAccess::GetLatestQueryString();
        echo Response::createObjectiveResponse(false, ExceptionHandler::GetExceptionsToString());
        die;
    }
    $pdo->commit();
    echo Response::createObjectiveResponse(true, $obj->TemplateID);
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:25,代码来源:templates.data.php

示例2: save

function save()
{
    $obj = new manage_professor_exe_posts();
    PdoDataAccess::FillObjectByArray($obj, $_POST);
    $postObj = new manage_posts($obj->post_id);
    if ($postObj->post_id == "") {
        echo Response::createObjectiveResponse(false, "کد پست وارد شده معتبر نمی باشد.");
        die;
    }
    if ($postObj->validity_start != "" && $postObj->validity_start != '0000-00-00' && DateModules::CompareDate($postObj->validity_start, str_replace("/", "-", DateModules::shamsi_to_miladi($obj->from_date))) > 0 || $postObj->validity_end != "" && $postObj->validity_end != '0000-00-00' && ($obj->to_date != "" && $obj->to_date != "0000-00-00") && DateModules::CompareDate($postObj->validity_end, str_replace("/", "-", DateModules::shamsi_to_miladi($obj->to_date))) < 0) {
        echo Response::createObjectiveResponse(false, "پست انتخابی از نظر تاریخ اعتبار و تاریخ های شروع و پایان وارد شده معتبر نمی باشد.");
        die;
    }
    if (empty($obj->row_no)) {
        $return = $obj->ADD();
    } else {
        $return = $obj->Edit();
    }
    if (!$return) {
        echo Response::createObjectiveResponse($return, ExceptionHandler::GetExceptionsToString());
        die;
    }
    if (isset($_POST["assign_post"])) {
        $return = $obj->assign_post();
    } else {
        $return = $obj->release_post();
    }
    echo Response::createObjectiveResponse($return, ExceptionHandler::GetExceptionsToString());
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:30,代码来源:exe_posts.data.php

示例3: deleteParam

function deleteParam()
{
    $obj = new manage_salary_params();
    $obj->param_id = $_POST["param_id"];
    echo $obj->RemoveParam($obj->param_id) ? "true" : ExceptionHandler::GetExceptionsToString("\n");
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:7,代码来源:salary_param.data.php

示例4: saveStaffData

function saveStaffData()
{
    $obj = new manage_staff();
    PdoDataAccess::FillObjectByArray($obj, $_POST);
    if (isset($_POST["work_start_date"])) {
        $obj->work_start_date = DateModules::Shamsi_to_Miladi($_POST["work_start_date"]);
    }
    if (isset($_POST["ProfWorkStart"])) {
        $obj->ProfWorkStart = DateModules::Shamsi_to_Miladi($_POST["ProfWorkStart"]);
    }
    if (isset($_POST["retired_date"])) {
        $obj->retired_date = DateModules::Shamsi_to_Miladi($_POST["retired_date"]);
    }
    if (isset($_POST["last_retired_pay"])) {
        $obj->last_retired_pay = DateModules::Shamsi_to_Miladi($_POST["last_retired_pay"]);
    }
    if (!isset($_POST['Over25'])) {
        $obj->Over25 = 0;
    }
    $obj->sum_paied_pension = $obj->sum_paied_pension > 0 ? $obj->sum_paied_pension : "0";
    $return = $obj->EditStaff();
    $key = $obj->staff_id . "," . $obj->PersonID . "," . $obj->person_type;
    echo $return ? Response::createObjectiveResponse("true", $key) : Response::createObjectiveResponse(false, ExceptionHandler::GetExceptionsToString("\n"));
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:25,代码来源:staff.data.php

示例5: SaveBase

function SaveBase()
{
    $obj = new manage_bases();
    PdoDataAccess::FillObjectByJsonData($obj, $_POST["record"]);
    // بررسی گروه های تشویقی که بیشتر از 5 برای یک نفر نباشد
    /*if(in_array($obj->BaseType, array(27,23,24,21,3,4,5)))
    	{
    		$query = "select sum(BaseValue) from bases 
    			where	PersonID=? AND 
    					BaseType in(27,23,24,21,3,4,5) AND 
    					BaseStatus = 'NORMAL'
    					";
    		$st = PdoDataAccess::runquery($query, array($obj->PersonID));
    		if(count($st) > 0 && (int)$st[0][0] + (int)$obj->BaseValue > 5)
    		{
    			echo Response::createObjectiveResponse(false, "OverMaxCGroup");
    			die();
    		}
    	}*/
    //----------------------------
    if (empty($obj->RowID)) {
        $obj->RegDate = PDONOW;
        $return = $obj->Add();
    } else {
        unset($obj->RegDate);
        $return = $obj->Edit();
    }
    if (!$return) {
        echo Response::createObjectiveResponse($return, ExceptionHandler::GetExceptionsToString());
        die;
    }
    echo Response::createObjectiveResponse(true, "");
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:34,代码来源:bases.data.php

示例6: removeCC

function removeCC()
{
    $result = manage_cost_centers::Remove($_POST["cid"]);
    if (!$result) {
        Response::createObjectiveResponse(false, ExceptionHandler::GetExceptionsToString());
        die;
    } else {
        Response::createObjectiveResponse(true, "");
        die;
    }
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:11,代码来源:cost_centers.data.php

示例7: AddTraffic

function AddTraffic()
{
    $obj = new ATN_traffic();
    $obj->TrafficDate = PDONOW;
    $obj->TrafficTime = DateModules::NowTime();
    $obj->IsSystemic = "YES";
    $obj->PersonID = $_SESSION["USER"]["PersonID"];
    $result = $obj->Add();
    //print_r(ExceptionHandler::PopAllExceptions());
    echo Response::createObjectiveResponse($result, ExceptionHandler::GetExceptionsToString());
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:12,代码来源:traffic.data.php

示例8: saveTaxHisGrid

function saveTaxHisGrid()
{
    $obj = new manage_staff_tax();
    PdoDataAccess::FillObjectByJsonData($obj, $_POST["record"]);
    if ($obj->tax_history_id == "") {
        $return = $obj->SaveStaffTaxHistory($_POST['PersonID']);
    } else {
        $return = $obj->EditStaffTaxHistory($_POST['PersonID']);
    }
    echo $return ? Response::createObjectiveResponse(true, $obj->staff_id) : Response::createObjectiveResponse(false, ExceptionHandler::GetExceptionsToString("\n"));
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:12,代码来源:staff_tax.data.php

示例9: SaveJob

function SaveJob()
{
    $obj = new manage_person_job();
    PdoDataAccess::FillObjectByJsonData($obj, $_POST["record"]);
    $obj->FromDate = DateModules::Shamsi_to_Miladi($obj->FromDate);
    $obj->ToDate = DateModules::Shamsi_to_Miladi($obj->ToDate);
    if (empty($obj->RowNO)) {
        $return = $obj->AddJobHistory();
    } else {
        $return = $obj->EditJobHistory();
    }
    echo $return ? Response::createObjectiveResponse(true, $obj->RowNO) : Response::createObjectiveResponse(false, ExceptionHandler::GetExceptionsToString("\n"));
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:14,代码来源:job_history.data.php

示例10: SaveBranch

function SaveBranch()
{
    $obj = new manage_study_branch();
    PdoDataAccess::FillObjectByJsonData($obj, $_POST["record"]);
    if (empty($obj->sbid)) {
        $return = $obj->Add();
    } else {
        $return = $obj->Edit();
    }
    if (!$return) {
        echo Response::createObjectiveResponse($return, ExceptionHandler::GetExceptionsToString());
        die;
    }
    echo Response::createObjectiveResponse(true, "");
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:16,代码来源:study_fields.data.php

示例11: saveTaxItem

function saveTaxItem()
{
    $obj = new manage_Tax_Table_Item();
    PdoDataAccess::FillObjectByJsonData($obj, $_POST["record"]);
    $obj->tax_table_id = $_POST["tax_table_id"];
    if ($obj->row_no == "") {
        $return = $obj->AddTaxItem($obj->tax_table_id);
    } else {
        $return = $obj->EditTaxItem($obj->tax_table_id, $obj->row_no);
    }
    if ($return) {
        echo Response::createResponse(true, $obj->tax_table_id, $obj->row_no);
    } else {
        echo Response::createResponse(false, ExceptionHandler::GetExceptionsToString());
    }
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:17,代码来源:tax_table_items.data.php

示例12: saveMiscDoc

function saveMiscDoc()
{
    //........ Fill object ..............
    $obj = new manage_person_misc_doc();
    $arr = get_object_vars($obj);
    $KeyArr = array_keys($arr);
    for ($i = 0; $i < count($arr); $i++) {
        eval("\$obj->" . $KeyArr[$i] . " = (isset(\$_POST) && isset(\$_POST['" . $KeyArr[$i] . "'])) \r\n\t\t\t? \$_POST['" . $KeyArr[$i] . "'] : '';");
    }
    $obj->PersonID = $_POST['PersonID'];
    $obj->doc_date = DateModules::Shamsi_to_Miladi($obj->doc_date);
    //....................................
    if (empty($_POST["row_no"])) {
        $return = $obj->AddMiscDoc();
    } else {
        $return = $obj->EditMiscDoc();
    }
    echo $return ? Response::createObjectiveResponse(true, $obj->row_no) : Response::createObjectiveResponse(false, ExceptionHandler::GetExceptionsToString("\n"));
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:20,代码来源:misc_doc.data.php

示例13: round

		$AccDocObj->AddItem($ACC_UnitID, $CostCodesArray[$ACC_pt]["38"], ($r_made_kharej_Az_shomool38 + $ExtraRoozMozd), $ACC_pt);
		$AccDocObj->AddItem($ACC_UnitID, $CostCodesArray[$ACC_pt]["extra"], $r_jazb_omana, $ACC_pt);

		$ACC_pt = ImportSalary::PERSON_TYPE_Contract;
		$AccDocObj->AddItem($ACC_UnitID, $CostCodesArray[$ACC_pt]["salary"], $gh_hoghoogh, $ACC_pt);
		$AccDocObj->AddItem($ACC_UnitID, $CostCodesArray[$ACC_pt]["overtime"], $gh_ezafeKar + $OverTimeGharardadi, $ACC_pt);
		$AccDocObj->AddItem($ACC_UnitID, $CostCodesArray[$ACC_pt]["OrgInsurance"], round($gh_bimeh_dastgah), $ACC_pt);
		$AccDocObj->AddItem($ACC_UnitID, $CostCodesArray[$ACC_pt]["GovInsurance"], $gh_bimeh_dolat, $ACC_pt);
		$AccDocObj->AddItem($ACC_UnitID, $CostCodesArray[$ACC_pt]["27"], ($gh_made_kharej_Az_shomool27 + $ExtraGharardadi), $ACC_pt);
		$AccDocObj->AddItem($ACC_UnitID, $CostCodesArray[$ACC_pt]["38"], ($gh_made_kharej_Az_shomool38 + $ExtraGharardadi), $ACC_pt);
		$AccDocObj->AddItem($ACC_UnitID, $CostCodesArray[$ACC_pt]["extra"], $gh_jazb_omana, $ACC_pt);

		if(ExceptionHandler::GetExceptionCount() > 0)
		{
			echo "مرکز هزینه : " . $title . "<br><hr><br>";
			echo "<span style=color:red><h3>" . ExceptionHandler::GetExceptionsToString ("<br>") . "</h3></span>";
			$AccError = true;
		}
		ExceptionHandler::PopAllExceptions();
	}
	//</editor-fold>

	echo '<tr>
			<td>علمی مشروط</td>
			<td>' . $mp_hoghoogh . '</td>
			<td>' . ($mp_ezafeKar + $OverTimeMProf) . '</td>
			<td>' . round($mp_bimeh_dastgah) . '</td>
			<td>' . $mp_bimeh_dolat . '</td>
			<td>' . ($mp_made_kharej_Az_shomool + $ExtraMProf) . '</td>
			<td>' . $mp_jazb_omana . '</td>
			<td>' . ($mp_sum + $ExtraMProf + $OverTimeMProf) . '</td>			
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:plan_report.php

示例14: saveDevData

function saveDevData()
{
    $obj = new manage_person_devotion();
    PdoDataAccess::FillObjectByArray($obj, $_POST);
    $obj->PersonID = $_POST['PersonID'];
    $obj->from_date = DateModules::Shamsi_to_Miladi($_POST["from_date"]);
    $obj->to_date = DateModules::Shamsi_to_Miladi($_POST["to_date"]);
    $obj->letter_date = DateModules::Shamsi_to_Miladi($_POST["letter_date"]);
    $obj->amount = empty($obj->amount) ? "0" : $obj->amount;
    $obj->continous = !empty($obj->continous) ? $obj->continous : 0;
    $obj->enlisted = !empty($obj->enlisted) ? $obj->enlisted : 0;
    if (empty($_POST["devotion_row"])) {
        $return = $obj->AddDevotion();
    } else {
        $return = $obj->EditDevotion();
    }
    echo $return ? Response::createObjectiveResponse(true, $obj->devotion_row) : Response::createObjectiveResponse(false, ExceptionHandler::GetExceptionsToString("\n"));
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:19,代码来源:devotion.data.php

示例15: DeleteCosts

function DeleteCosts()
{
    $obj = new WAR_costs();
    $obj->CostID = $_POST["CostID"];
    $result = $obj->Remove();
    echo Response::createObjectiveResponse($result, ExceptionHandler::GetExceptionsToString());
    die;
}
开发者ID:jafarkhani,项目名称:rtfund,代码行数:8,代码来源:request.data.php


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