當前位置: 首頁>>代碼示例>>PHP>>正文


PHP company::to_string方法代碼示例

本文整理匯總了PHP中company::to_string方法的典型用法代碼示例。如果您正苦於以下問題:PHP company::to_string方法的具體用法?PHP company::to_string怎麽用?PHP company::to_string使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在company的用法示例。


在下文中一共展示了company::to_string方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

     } else {
         $responce = array('status' => 'failed', 'error' => 'Data missing', 'data' => array());
     }
 } else {
     if ($form_id == 27) {
         ///edit company
         if (isset($_POST['company_id']) and !empty($_POST['company_id']) and isset($_POST['shop_name']) and !empty($_POST['shop_name']) and isset($_POST['shop_code']) and !empty($_POST['shop_code'])) {
             $company = new company();
             $company->id = $_POST['company_id'];
             $company->company_name = $_POST['shop_name'];
             $company->company_code = $_POST['shop_code'];
             if ($company->updateCompany()) {
                 $message = "Shop Updated Successfuly";
                 $responce = array('status' => 'success', 'error' => '', 'data' => array("message" => $message, "id" => $company->id));
             } else {
                 $description = "Shop update failed, Shop : " . $company->to_string();
                 Log::e($tag, $description);
                 $mysql_error = mysql_error();
                 if (empty($mysql_error)) {
                     $error_message = 'Some server error occured';
                 } else {
                     $error_message = $mysql_error;
                 }
                 $responce = array('status' => 'failed', 'error' => $error_message, 'data' => array());
             }
         } else {
             $responce = array('status' => 'failed', 'error' => 'Data missing', 'data' => array());
         }
     } else {
         if ($form_id == 29) {
             ///edit user
開發者ID:sakkeerhussain,項目名稱:online_ims,代碼行數:31,代碼來源:update_form_data.php

示例2: array

             $responce = array('status' => 'failed', 'error' => $error_message, 'data' => array());
         }
     } else {
         $responce = array('status' => 'failed', 'error' => 'Data missing', 'data' => array());
     }
 } else {
     if ($form_id == 27) {
         //shop form
         if (isset($_POST['shop_name']) and !empty($_POST['shop_name']) and isset($_POST['shop_code']) and !empty($_POST['shop_code'])) {
             $company = new company();
             $company->company_name = $_POST['shop_name'];
             $company->company_code = $_POST['shop_code'];
             if ($company->addCompany()) {
                 $responce = array('status' => 'success', 'error' => '', 'data' => array('message' => 'Shop Added successfully'));
             } else {
                 Log::e($tag, "Shop adding failed item : " . $company->to_string() . 'Error : ' . mysql_error());
                 $mysql_error = mysql_error();
                 if (empty($mysql_error)) {
                     $error_message = 'Some server error occured';
                 } else {
                     $error_message = $mysql_error;
                 }
                 $responce = array('status' => 'failed', 'error' => $error_message, 'data' => array());
             }
         } else {
             $responce = array('status' => 'failed', 'error' => 'Data missing', 'data' => array());
         }
     } else {
         if ($form_id == 29) {
             //user form
             if (isset($_POST['name']) and !empty($_POST['name']) and isset($_POST['username']) and !empty($_POST['username']) and isset($_POST['shop']) and !empty($_POST['shop']) and isset($_POST['type']) and !empty($_POST['type']) and isset($_POST['password']) and !empty($_POST['password'])) {
開發者ID:sakkeerhussain,項目名稱:online_ims,代碼行數:31,代碼來源:add_form_data.php

示例3: array

             $responce = array('status' => 'failed', 'error' => $error_message, 'data' => array());
         }
     } else {
         $responce = array('status' => 'failed', 'error' => 'Data missing', 'data' => array());
     }
 } else {
     if ($form_id == 26) {
         ///shop delete
         if (isset($_POST['company_id']) and !empty($_POST['company_id'])) {
             $company = new company();
             $company->id = $_POST['company_id'];
             if ($company->deleteCompany()) {
                 $message = "Shop deleted Successfuly";
                 $responce = array('status' => 'success', 'error' => '', 'data' => array("message" => $message, "id" => $company->id));
             } else {
                 $description = "Shop delete failed, item : " . $company->to_string() . " Error : " . mysql_error();
                 Log::e($tag, $description);
                 $mysql_error = mysql_error();
                 if (empty($mysql_error)) {
                     $error_message = 'Some server error occured';
                 } else {
                     $error_message = $mysql_error;
                 }
                 $responce = array('status' => 'failed', 'error' => $error_message, 'data' => array());
             }
         } else {
             $responce = array('status' => 'failed', 'error' => 'Data missing', 'data' => array());
         }
     } else {
         if ($form_id == 28) {
             ///user delete
開發者ID:sakkeerhussain,項目名稱:online_ims,代碼行數:31,代碼來源:delete_form_data.php


注:本文中的company::to_string方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。