コード例 #1
0
  function User()
  {
    //important!!!
    $this->__session_class_path = addslashes(__FILE__);

    parent :: Object();
  }
コード例 #2
0
ファイル: EmailHelper.php プロジェクト: noloh/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
0
ファイル: Sparkline.php プロジェクト: damncabbage/publicwhip
 function Sparkline($catch_errors = true)
 {
     parent::Object($catch_errors);
     $this->colorList = array();
     $this->colorBackground = 'white';
     $this->lineSize = 1;
 }
コード例 #4
0
  function PersistentObject()
  {
    parent :: Object();

    $toolkit =& Limb :: toolkit();
    $uow =& $toolkit->getUOW();
    $uow->registerNew($this);
  }
コード例 #5
0
ファイル: ErrorManager.php プロジェクト: noikiy/owaspbwa
 /**
  * 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
0
ファイル: Sparkline.php プロジェクト: bruno/openaustralia-app
 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
0
 /**
  * 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
0
 /**
  * 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
0
  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
0
 function Type($Server)
 {
     Object::Object($server);
 }
コード例 #11
0
 function Trigger($Server)
 {
     Object::Object($Server);
 }
コード例 #12
0
 function module()
 {
     Object::Object();
 }
コード例 #13
0
 function Sequence($Server)
 {
     Object::Object($Server);
 }
コード例 #14
0
 function OraFunction($server)
 {
     Object::Object($server);
 }
コード例 #15
0
 /**
  * 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;
         }
     }
 }
コード例 #16
0
 function Package($server)
 {
     Object::Object($server);
 }
コード例 #17
0
 function Table($server)
 {
     Object::Object($server);
 }
コード例 #18
0
 function Datafile($server)
 {
     Object::Object($server);
 }
コード例 #19
0
 function Index($server)
 {
     Object::Object($server);
 }
コード例 #20
0
 /**
  * Storage class constructor.
  *
  * Creates the new instance of Storage class.
  * Note - this storage container is slower then that which comes from the
  * PHP distribution. Note - only one storage container is allowed to handle
  * session data.
  *
  * @access public
  * @return void
  */
 function Storage()
 {
     Object::Object();
 }
コード例 #21
0
 /**
  * File class constructor.
  *
  * Creates the new instance of File class and sets up basic properties.
  *
  * @access public
  * @param string $name the path to file or file name, defaults to "".
  * @param string $mode the access mode to file stream, defaults to "r".
  * @param boolean $backup indicates whether works with orginal file or its copy.
  * @param boolean $buffer the number of bytes to read and write at IO operations.
  * @return void
  */
 function File($name = '', $mode = 'r', $backup = false, $buffer = 1024)
 {
     Object::Object();
     $this->_temp = '';
     $this->_name = $name;
     $this->_mode = $mode;
     $this->_handle = null;
     $this->_locked = false;
     $this->_backup = $backup;
     $this->_buffer = $buffer;
 }