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


PHP Log::i方法代码示例

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


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

示例1: deleteInventry

 function deleteInventry()
 {
     $result = $this->db_handler->delete_model($this);
     $description = "Inventry deleted, result : " . $result;
     Log::i($this->tag, $description);
     return $result;
 }
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:7,代码来源:inventry.php

示例2: updateBankDeposit

 function updateBankDeposit()
 {
     $result = $this->db_handler->update_model($this);
     $description = "Updating BankDeposit (" . $this->to_string() . ")";
     Log::i($this->tag, $description);
     return $result;
 }
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:7,代码来源:bank_deposits.php

示例3: deleteExpence

 function deleteExpence()
 {
     $result = $this->db_handler->delete_model($this);
     $description = "Expence deleted, result : " . $result;
     Log::i($this->tag, $description);
     return $result;
 }
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:7,代码来源:expences.php

示例4: deleteWendor

 function deleteWendor()
 {
     $result = $this->db_handler->delete_model($this);
     $description = "Vendor deleted, result : " . $result;
     Log::i($this->tag, $description);
     return $result;
 }
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:7,代码来源:wendors.php

示例5: deleteCompany

 function deleteCompany()
 {
     $result = $this->db_handler->delete_model($this);
     if ($result) {
         $description = "Company deleted, id : " . $this->id;
         Log::i($this->tag, $description);
     }
     return $result;
 }
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:9,代码来源:company.php

示例6: addPurchaceItem

 function addPurchaceItem($purchace_item = null)
 {
     if ($purchace_item == null) {
         $purchace_item = $this;
     }
     $this->db_handler->add_model($purchace_item);
     $description = "Added new Purchace item (" . $purchace_item->to_string() . ")";
     Log::i($this->tag, $description);
 }
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:9,代码来源:purchace_items.php

示例7: deleteTaxCategory

 function deleteTaxCategory()
 {
     $result = $this->db_handler->delete_model($this);
     if ($result) {
         $description = "Tax Category deleted, Tax Category ID : " . $this->id;
         Log::i($this->tag, $description);
     }
     return $result;
 }
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:9,代码来源:tax_category.php

示例8: updateBank

 function updateBank($bank = null)
 {
     if ($bank == null) {
         $bank = $this;
     }
     if ($this->db_handler->update_model($bank)) {
         $description = "Updated bank (" . $bank->to_string() . ")";
         Log::i($this->tag, $description);
         return True;
     } else {
         return FALSE;
     }
 }
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:13,代码来源:bank.php

示例9: addSaleItem

 function addSaleItem($sale_item = null)
 {
     if ($sale_item == null) {
         $sale_item = $this;
     }
     $result = $this->db_handler->add_model($sale_item);
     if ($result) {
         $description = "Added new Sale Item (" . $sale_item->to_string() . ")";
         Log::i($this->tag, $description);
     } else {
         $description = "Adding new Sale Item failed (" . $sale_item->to_string() . ")";
         $description = $description . mysql_error();
         Log::i($this->tag, $description);
     }
 }
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:15,代码来源:sales_items.php

示例10: autoActivateSuite

 /**
  * 某个企业的临时授权码在成功换取永久授权码后,开放平台将不再推送该企业临时授权码。
  */
 public static function autoActivateSuite($tmpAuthCode)
 {
     $suiteAccessToken = Service::getSuiteAccessToken($suiteTicket);
     Log::i("[Activate] getSuiteToken: " . $suiteAccessToken);
     /**
      * 企业永久授权码信息须持久化保持,在demo中只做缓存处理。
      */
     $permanetCodeInfo = json_decode(Cache::getPermanentAuthCodeInfo());
     if (!$permanetCodeInfo) {
         $suiteTicket = Cache::getSuiteTicket();
         Log::i("[Activate] getSuiteTicket: " . $suiteTicket);
         /**
          * 获取企业永久授权码
          */
         $permanetCodeInfo = Service::getPermanentCodeInfo($suiteAccessToken, $tmpAuthCode);
     }
     Log::i("[Activate] getPermanentCodeInfo: " . json_encode($permanetCodeInfo));
     $permanetCode = $permanetCodeInfo->permanent_code;
     $authCorpId = $permanetCodeInfo->auth_corp_info->corpid;
     Log::i("[Activate] permanetCode: " . $permanetCode . ",  authCorpId: " . $authCorpId);
     /**
      * 获取企业access token
      */
     $corpAccessToken = Service::getCorpAccessToken($suiteAccessToken, $authCorpId, $permanetCode);
     Log::i("[Activate] getCorpToken: " . $corpAccessToken);
     /**
      * 获取企业授权信息
      */
     $res = Service::getAuthInfo($suiteAccessToken, $authCorpId, $permanetCode);
     Log::i("[Activate] getAuthInfo: " . json_encode($res));
     self::check($res);
     /**
      * 激活套件
      */
     $res = Service::activeSuite($suiteAccessToken, $authCorpId, $permanetCode);
     Log::i("[Activate] activeSuite: " . json_encode($res));
     self::check($res);
 }
开发者ID:vincent067,项目名称:openapi-demo-php,代码行数:41,代码来源:Activate.php

示例11: display

 public function display($source, $commands)
 {
     foreach ($commands as $value) {
         Log::i()->debug($source, $value["command"] . ": " . $value["result"]);
     }
 }
开发者ID:beau51,项目名称:clapi_php,代码行数:6,代码来源:log.php

示例12: send_password_changed_notification_mail

 public function send_password_changed_notification_mail($username)
 {
     $message = '
         <html>
         <head>
           <title style="font-size:28px;">' . $this->subject . '</title>
         </head>
         <body style="background-color:#fff; color:#21acd7; border : 5px solid #21acd7;">
           <div style="border : 5px solid #21acd7; margin :0; padding :20px; text-align : centre;">
             <h2>Login Password Changed</h2>
           </div>
           <table style="border : 5px solid #21acd7; padding :20px; width: 100%;">
             <tr>
               <td>Login passoword of \'' . $username . '\' has been updated.' . "\n" . 'If you are not done this your system security is compromised.' . "\n" . 'Please contact your system admin immediatly.
               </td>
             </tr>
           </table>
         </body>
         </html>
         ';
     $headers = $this->header . "\r\n";
     $headers .= 'MIME-Version: 1.0' . "\r\n";
     $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
     $result = mail($this->to, $this->subject, $message, $headers);
     $description = "password changed notification mail has been sent, user name : {$username} ";
     Log::i($this->tag, $description);
     //saving to an html file
     //        $h = fopen("sample.html", "w");
     //        fwrite($h, $message);
     //        fclose($h);
 }
开发者ID:sakkeerhussain,项目名称:piknik_ims,代码行数:31,代码来源:mail.php

示例13: login

function login()
{
    global $user_id;
    $tag = 'LOG IN';
    $ch = curl_init(BASE_URL . 'login.php');
    $fields = array("user_name" => 'pos2', 'password' => '1234');
    curl_setopt($ch, CURLOPT_COOKIEJAR, COOKIE_FILE);
    curl_setopt($ch, CURLOPT_COOKIEFILE, COOKIE_FILE);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($fields));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HEADER, FALSE);
    $content = curl_exec($ch);
    curl_close($ch);
    $json = json_decode($content, TRUE);
    echo "<hr/>LOGIN<br/>";
    print_r($json);
    echo "<hr/>";
    Log::i($tag, "Login Responce: " . multi_implode(" ", $json));
    $status = $json['status'];
    if ($status === "success") {
        $user_id = $json["data"]["user"]["id"];
        return TRUE;
    } else {
        return FALSE;
    }
}
开发者ID:sakkeerhussain,项目名称:piknik_ims,代码行数:27,代码来源:sales_sync_task.php

示例14: json_decode

$msg = "";
$errCode = $crypt->DecryptMsg($signature, $timeStamp, $nonce, $encrypt, $msg);
if ($errCode == 0) {
    Log::i(json_encode($_GET) . "  " . $msg);
    $eventMsg = json_decode($msg);
    $eventType = $eventMsg->EventType;
    if ("suite_ticket" === $eventType) {
        Cache::setSuiteTicket($eventMsg->SuiteTicket);
    } else {
        if ("tmp_auth_code" === $eventType) {
            //handle temporary auth code
        } else {
            if ("change_auth" === $eventType) {
                //handle auth change event
            } else {
                //should never happen
            }
        }
    }
} else {
    Log::e(json_encode($_GET) . "  ERR:" . $errCode);
}
$plain = "success";
$encryptMsg = "";
$errCode = $crypt->EncryptMsg($plain, $timeStamp, $nonce, $encryptMsg);
if ($errCode == 0) {
    echo $encryptMsg;
    Log::i("RESPONSE: " . $encryptMsg);
} else {
    Log::e("RESPONSE ERR: " . $errCode);
}
开发者ID:ruifeng126,项目名称:openapi-demo-php,代码行数:31,代码来源:receive.php

示例15: foreach

             foreach ($sales_items_new as $sale_item_new) {
                 if ($item_id == $sale_item_new->item_id) {
                     $removed_item = false;
                 }
             }
             if ($removed_item) {
                 $qty = $sale_item_prev->quantity;
                 $inv = new inventry();
                 $inv->company_id = $sale->company_id;
                 $inv->item_id = $item_id;
                 $invs = $inv->getInventryForSpecificCompanyAndItem();
                 $inv = $invs[0];
                 $inv->in_stock_count = $inv->in_stock_count + $qty;
                 $inv->updateInventry();
                 $description = "Updating inventry (sales return - removed item) diff : " . $qty . ", inventry : " . $inv->to_string();
                 Log::i($tag, $description);
             }
         }
         $message = "Sale Updated Successfuly";
         $responce = array('status' => 'success', 'error' => '', 'data' => array("message" => $message, "id" => $sale->id));
     } else {
         $responce = array('status' => 'failed', 'error' => 'Data missing', 'data' => array());
     }
 } else {
     if ($form_id == 4) {
         // bank deposit edit
         if (isset($_POST['amount']) and !empty($_POST['amount']) and isset($_POST['bank_deposit_id']) and !empty($_POST['bank_deposit_id']) and isset($_POST['description']) and !empty($_POST['description'])) {
             $bank_deposit = new bank_deposits();
             $bank_deposit->id = $_POST['bank_deposit_id'];
             $bank_deposit->getBankDeposit();
             $bank_deposit->description = $_POST['description'];
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:31,代码来源:update_form_data.php


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