Changeset 575 for trunk/lib


Ignore:
Timestamp:
Feb 27, 2017 2:16:03 PM (7 years ago)
Author:
anonymous
Message:

Changed LOG_ levels.

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/DB.inc.php

    r564 r575  
    394394        // Ensure the table exists.
    395395        if (!$this->tableExists($table, $use_cached_results)) {
    396             $app->logMsg(sprintf('Table does not exist: %s', $table), LOG_DEBUG, __FILE__, __LINE__);
     396            $app->logMsg(sprintf('Table does not exist: %s', $table), LOG_NOTICE, __FILE__, __LINE__);
    397397            return false;
    398398        }
  • trunk/lib/Validator.inc.php

    r550 r575  
    6262    * @return bool   true if form is not empty, false otherwise.
    6363    */
    64     static public function notEmpty($val, $type=LOG_NOTICE, $file=null, $line=null)
     64    static public function notEmpty($val, $type=LOG_DEBUG, $file=null, $line=null)
    6565    {
    6666        $app =& App::getInstance();
     
    9292    * @return bool   true if form is empty, false otherwise.
    9393    */
    94     static public function isEmpty($val, $type=LOG_NOTICE, $file=null, $line=null)
     94    static public function isEmpty($val, $type=LOG_DEBUG, $file=null, $line=null)
    9595    {
    9696        return !self::notEmpty($val, $type, $file, $line);
     
    106106    * @return bool   true if form is a string, false otherwise.
    107107    */
    108     static public function isString($val, $type=LOG_NOTICE, $file=null, $line=null)
     108    static public function isString($val, $type=LOG_DEBUG, $file=null, $line=null)
    109109    {
    110110        $app =& App::getInstance();
     
    126126    * @return bool   True if no errors found, false otherwise.
    127127    */
    128     static public function isNumber($val, $type=LOG_NOTICE, $file=null, $line=null)
     128    static public function isNumber($val, $type=LOG_DEBUG, $file=null, $line=null)
    129129    {
    130130        $app =& App::getInstance();
     
    147147    * @return bool   true if value is an integer
    148148    */
    149     static public function isInteger($val, $negative_ok=false, $type=LOG_NOTICE, $file=null, $line=null)
     149    static public function isInteger($val, $negative_ok=false, $type=LOG_DEBUG, $file=null, $line=null)
    150150    {
    151151        $app =& App::getInstance();
     
    171171    * @return bool   true if value is a float
    172172    */
    173     static public function isFloat($val, $negative_ok=false, $type=LOG_NOTICE, $file=null, $line=null)
     173    static public function isFloat($val, $negative_ok=false, $type=LOG_DEBUG, $file=null, $line=null)
    174174    {
    175175        $app =& App::getInstance();
     
    197197    * @return bool   true if value is a float
    198198    */
    199     static public function isDecimal($val, $max=10, $dec=2, $negative_ok=false, $type=LOG_NOTICE, $file=null, $line=null)
     199    static public function isDecimal($val, $max=10, $dec=2, $negative_ok=false, $type=LOG_DEBUG, $file=null, $line=null)
    200200    {
    201201        $app =& App::getInstance();
     
    228228    * @return bool   true if value is a float
    229229    */
    230     static public function isArray($val, $type=LOG_NOTICE, $file=null, $line=null)
     230    static public function isArray($val, $type=LOG_DEBUG, $file=null, $line=null)
    231231    {
    232232        $app =& App::getInstance();
     
    251251    * @return bool   true if value passes regex test
    252252    */
    253     static public function checkRegex($val, $regex, $valid_on_match=true, $type=LOG_NOTICE, $file=null, $line=null)
     253    static public function checkRegex($val, $regex, $valid_on_match=true, $type=LOG_DEBUG, $file=null, $line=null)
    254254    {
    255255        $app =& App::getInstance();
     
    273273    * @return bool   true if string length is within given boundaries
    274274    */
    275     static public function stringLength($val, $min, $max, $type=LOG_NOTICE, $file=null, $line=null)
     275    static public function stringLength($val, $min, $max, $type=LOG_DEBUG, $file=null, $line=null)
    276276    {
    277277        $app =& App::getInstance();
     
    295295    * @return bool   True if no errors found, false otherwise.
    296296    */
    297     static public function numericRange($val, $min, $max, $type=LOG_NOTICE, $file=null, $line=null)
     297    static public function numericRange($val, $min, $max, $type=LOG_DEBUG, $file=null, $line=null)
    298298    {
    299299        $app =& App::getInstance();
     
    324324    * @author  Quinn Comendant <quinn@strangecode.com>
    325325    */
    326     static public function validateEmail($val, $strict=false, $type=LOG_NOTICE, $file=null, $line=null)
     326    static public function validateEmail($val, $strict=false, $type=LOG_DEBUG, $file=null, $line=null)
    327327    {
    328328        $app =& App::getInstance();
     
    374374    * @return bool    true if no errors found, false otherwise
    375375    */
    376     static public function validatePhone($val, $type=LOG_NOTICE, $file=null, $line=null)
     376    static public function validatePhone($val, $type=LOG_DEBUG, $file=null, $line=null)
    377377    {
    378378        $app =& App::getInstance();
     
    398398    * @return bool    True if no errors found, false otherwise.
    399399    */
    400     static public function validateStrDate($val, $type=LOG_NOTICE, $file=null, $line=null)
     400    static public function validateStrDate($val, $type=LOG_DEBUG, $file=null, $line=null)
    401401    {
    402402        $app =& App::getInstance();
     
    428428    * @since    19 May 2015 09:57:27
    429429    */
    430     static public function isEmptyDate($val, $type=LOG_NOTICE, $file=null, $line=null)
     430    static public function isEmptyDate($val, $type=LOG_DEBUG, $file=null, $line=null)
    431431    {
    432432        $app =& App::getInstance();
     
    450450    * @return bool    True if no errors found, false otherwise.
    451451    */
    452     static public function validateCCNumber($val, $cc_type=null, $type=LOG_NOTICE, $file=null, $line=null)
     452    static public function validateCCNumber($val, $cc_type=null, $type=LOG_DEBUG, $file=null, $line=null)
    453453    {
    454454        $app =& App::getInstance();
     
    529529    * @return bool   True if no errors found, false otherwise.
    530530    */
    531     static public function fileUploaded($form_name, $type=LOG_NOTICE, $file=null, $line=null)
     531    static public function fileUploaded($form_name, $type=LOG_DEBUG, $file=null, $line=null)
    532532    {
    533533        $app =& App::getInstance();
     
    568568    * @since    20 Aug 2014 14:44:23
    569569    */
    570     static public function fileUploadSize($form_name, $type=LOG_NOTICE, $file=null, $line=null)
     570    static public function fileUploadSize($form_name, $type=LOG_DEBUG, $file=null, $line=null)
    571571    {
    572572        $app =& App::getInstance();
Note: See TracChangeset for help on using the changeset viewer.