本文整理汇总了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();
}
示例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);
}
}
示例3: Sparkline
function Sparkline($catch_errors = true)
{
parent::Object($catch_errors);
$this->colorList = array();
$this->colorBackground = 'white';
$this->lineSize = 1;
}
示例4: PersistentObject
function PersistentObject()
{
parent :: Object();
$toolkit =& Limb :: toolkit();
$uow =& $toolkit->getUOW();
$uow->registerNew($this);
}
示例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();
}
示例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)
}
示例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();
}
示例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();
}
示例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);
}
示例10: Type
function Type($Server)
{
Object::Object($server);
}
示例11: Trigger
function Trigger($Server)
{
Object::Object($Server);
}
示例12: module
function module()
{
Object::Object();
}
示例13: Sequence
function Sequence($Server)
{
Object::Object($Server);
}
示例14: OraFunction
function OraFunction($server)
{
Object::Object($server);
}
示例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;
}
}
}