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


PHP Object::Object方法代码示例

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


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

示例1: User

  function User()
  {
    //important!!!
    $this->__session_class_path = addslashes(__FILE__);

    parent :: Object();
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:7,代码来源:User.class.php

示例2: EmailHelper

 /**
  * EmailHelper Constructor
  * 
  * Creates an EmailHelper object. Note that parameters to contructor are NOT necessary,
  * and merely a convenience. It's preferable syntactically to set otions via properties 
  * and the To, CC, and BCC ArrayLists.
  * 
  * @param string|array $from Email "From". If array, then: array(FROM, REPLY-TO).
  * @param string|array|array(arrays) $to Email "To". If array then: array(TO, CC, BCC).
  * @param string $subject Email "Subject"
  * @param string|array $message Email "Message". If array then: array(TEXT, HTML).
  * @return EmailHelper
  */
 function EmailHelper($from = null, $to = null, $subject = null, $message = null)
 {
     parent::Object();
     $this->To = new ArrayList();
     $this->CC = new ArrayList();
     $this->BCC = new ArrayList();
     if (is_array($from)) {
         $this->SetFrom($from[0]);
         $this->SetReplyTo($from[1]);
     } else {
         $this->SetFrom($from);
     }
     if (is_array($to)) {
         if (isset($to[0])) {
             $this->SetTo($to[0]);
         }
         if (isset($to[1])) {
             $this->SetCC($to[1]);
         }
         if (isset($to[2])) {
             $this->SetBCC($to[2]);
         }
     } else {
         $this->SetTo($to);
     }
     $this->SetSubject($subject);
     if (is_array($message)) {
         $this->SetMessage($message[0]);
         $this->SetRichMessage($message[1]);
     } else {
         $this->SetMessage($message);
     }
 }
开发者ID:noloh,项目名称:EmailHelper,代码行数:46,代码来源:EmailHelper.php

示例3: Sparkline

 function Sparkline($catch_errors = true)
 {
     parent::Object($catch_errors);
     $this->colorList = array();
     $this->colorBackground = 'white';
     $this->lineSize = 1;
 }
开发者ID:damncabbage,项目名称:publicwhip,代码行数:7,代码来源:Sparkline.php

示例4: PersistentObject

  function PersistentObject()
  {
    parent :: Object();

    $toolkit =& Limb :: toolkit();
    $uow =& $toolkit->getUOW();
    $uow->registerNew($this);
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:PersistentObject.class.php

示例5: ErrorManager

 /**
  * ErrorManager::ErrorManager()
  * 
  * @param string $errorManagerSystem
  * @param string $level
  * @param string $escape
  * @param string $file
  * @param string $alarme
  * @return 
  **/
 function ErrorManager($errorManagerSystem = '', $level = '', $escape = '', $file = '', $alarme = '')
 {
     $this->SetErrorSystem($errorManagerSystem);
     $this->SetErrorLevel($level);
     $this->SetErrorEscape($escape);
     $this->SetErrorAlarme($alarme);
     $this->SetErrorLog($file);
     parent::Object();
 }
开发者ID:noikiy,项目名称:owaspbwa,代码行数:19,代码来源:ErrorManager.php

示例6: Sparkline

 function Sparkline($catch_errors = true)
 {
     parent::Object($catch_errors);
     $this->colorList = array();
     $this->colorBackground = 'white';
     $this->lineSize = 1;
     $this->graphAreaPx = array(array(0, 0), array(0, 0));
     // px(L, B), px(R, T)
 }
开发者ID:bruno,项目名称:openaustralia-app,代码行数:9,代码来源:Sparkline.php

示例7: Dir

 /**
  * Dir class constructor.
  *
  * Creates the new instance of Dir class and sets up basic properties.
  *
  * @access public
  * @param string $root the path to directory, defaults to "./".
  * @return void
  */
 function Dir($root = './')
 {
     Object::Object();
     $slash = substr($root, -1);
     if (ord($slash) != 47) {
         $root = $root . chr(47);
     }
     $this->_root = $root;
     $this->_handle = null;
     $this->_status = array();
 }
开发者ID:googlecode-mirror,项目名称:ascent-phpstats,代码行数:20,代码来源:dir.inc.php

示例8: Template

 /**
  * Template class constructor.
  *
  * Creates the new instance of Template class and sets up basic properties.
  *
  * @access public
  * @param string $root the root to template files, defaults to "".
  * @return void
  */
 function Template($root = '')
 {
     Object::Object();
     if (!is_dir($root)) {
         $this->_root = '';
     } else {
         $slash = substr($root, -1);
         if (ord($slash) != 47) {
             $root = $root . chr(47);
         }
         $this->_root = $root;
     }
     $this->_files = array();
     $this->_params = array();
     $this->_values = array();
 }
开发者ID:googlecode-mirror,项目名称:ascent-phpstats,代码行数:25,代码来源:template.inc.php

示例9: Request

  function Request()
  {
    parent :: Object();

    global $HTTP_POST_VARS, $HTTP_GET_VARS;

    // for different PHP versions
    if (isset($_GET))
      $request = array_merge($_GET, $_POST);
    else
      $request = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS);

    if(ini_get('magic_quotes_gpc'))
      $request = $this->_stripHttpSlashes($request);

    foreach ($request as $k => $v)
      $this->set($k, $v);
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:18,代码来源:Request.class.php

示例10: Type

 function Type($Server)
 {
     Object::Object($server);
 }
开发者ID:BackupTheBerlios,项目名称:phporacleadmin,代码行数:4,代码来源:view.lib.php

示例11: Trigger

 function Trigger($Server)
 {
     Object::Object($Server);
 }
开发者ID:BackupTheBerlios,项目名称:phporacleadmin,代码行数:4,代码来源:trigger.lib.php

示例12: module

 function module()
 {
     Object::Object();
 }
开发者ID:googlecode-mirror,项目名称:ascent-phpstats,代码行数:4,代码来源:module.inc.php

示例13: Sequence

 function Sequence($Server)
 {
     Object::Object($Server);
 }
开发者ID:BackupTheBerlios,项目名称:phporacleadmin,代码行数:4,代码来源:sequence.lib.php

示例14: OraFunction

 function OraFunction($server)
 {
     Object::Object($server);
 }
开发者ID:BackupTheBerlios,项目名称:phporacleadmin,代码行数:4,代码来源:function.lib.php

示例15: Error

 /**
  * Error class constructor.
  *
  * The $reply array should has action and option keys eg.
  * $reply = array('action' => ERROR_ACTION_WRITE, 'option' => 'logfile.log');
  * Action key can be set with one of the following constants:
  * {@link ERROR_ACTION_ABORT}, {@link ERROR_ACTION_PRINT},
  * {@link ERROR_ACTION_LOGIN}, {@link ERROR_ACTION_EMAIL},
  * {@link ERROR_ACTION_DEBUG}, {@link ERROR_ACTION_WRITE},
  * {@link ERROR_ACTION_RAISE}.
  *
  * @access public
  * @param string $message error message, defaults to "Unexpected Error".
  * @param int $code error code (optional), defaults to 0.
  * @param array $reply error mode of operation.
  * @return void
  */
 function Error($message = '', $code = 0, $reply = null)
 {
     Object::Object();
     $this->_code = $code;
     if (strlen($message) > 0) {
         $this->_message = $message;
     } else {
         $this->_message = 'Unexpected Error';
     }
     if (is_array($reply)) {
         if (empty($reply['format'])) {
             $format = "[%d] %s";
         } else {
             $format = $reply['format'];
         }
         if ($reply['action'] == ERROR_ACTION_WRITE) {
             $format = date('[d-m-Y H:i:s] ') . $format . "\n";
         }
         $message = sprintf($format, $this->_code, $this->_message);
         switch ($reply['action']) {
             case ERROR_ACTION_ABORT:
                 die($message);
                 break;
             case ERROR_ACTION_PRINT:
                 print $message;
                 break;
             case ERROR_ACTION_LOGIN:
                 error_log($message, 0);
                 break;
             case ERROR_ACTION_EMAIL:
                 error_log($message, 1, $reply['option']);
                 break;
             case ERROR_ACTION_DEBUG:
                 error_log($message, 2, $reply['option']);
                 break;
             case ERROR_ACTION_WRITE:
                 error_log($message, 3, $reply['option']);
                 break;
             case ERROR_ACTION_RAISE:
                 trigger_error($message, $reply['option']);
                 break;
         }
     }
 }
开发者ID:googlecode-mirror,项目名称:ascent-phpstats,代码行数:61,代码来源:object.inc.php


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