클래스·함수 명세

BaseObject

BaseObject (전역 클래스) 클래스의 공개 메서드 목록입니다. 이 문서는 Zittme 코어 소스에서 자동 생성되었습니다.

소스: classes/object/Object.class.php

공개 메서드

  • function __construct($error = 0, $message = 'success')
  • Constructor
  • static function __set_state(array $vars)
  • Set state for var_export()
  • function setError($error = 0)
  • Setter to set error code or message
  • function getError()
  • Getter to retrieve error code
  • function setHttpStatusCode($code = 200)
  • Setter to set HTTP status code
  • function getHttpStatusCode()
  • Getter to retrieve HTTP status code
  • function setMessage($message = 'success', $type = null)
  • Setter to set set the error message
  • function getMessage()
  • Getter to retrieve an error message
  • function setMessageType($type)
  • set type of message
  • function getMessageType()
  • get type of message
  • function set($key, $val)
  • Setter to set a key/value pair as an additional variable
  • function add($key, $val)
  • Alias to set().
  • function sets($vars)
  • Method to set multiple key/value pairs as additional variables
  • function adds($vars)
  • Alias to sets().
  • function get($key)
  • Method to retrieve a corresponding value to a given key
  • function gets()
  • Method to retrieve an object containing a key/value pairs
  • function getVariables()
  • Method to retrieve an array of key/value pairs
  • function getObjectVars()
  • Method to retrieve an object of key/value pairs
  • function unset($key)
  • Method to delete a key
  • function toBool()
  • Method to return either true or false depnding on the value in a 'error' variable
  • function toBoolean()
  • Method to return either true or false depnding on the value in a 'error' variable