Object 類別 參考文件
[Core]
類別Object的繼承圖:
全部成員列表
詳細描述
This is the highest class on the top of our hierarchy. Provides some common methods useful to deal with objects, an also some commodity methods for debugging such as toString, which will dump the names and the values of the attributes of the object. All the objects should inherit from this one and call this constructor manually, due to PHP not automatically calling the parent's class constructor when inheriting.
定義在 object.class.php 檔案之第 49 行.
建構子與解構子說明文件
|
|
Constructor
定義在 object.class.php 檔案之第 57 行.
被參考於 Action::Action(), ActionInfo::ActionInfo(), BaseRequestGenerator::BaseRequestGenerator(), BaseUnpacker::BaseUnpacker(), BayesianFilterCore::BayesianFilterCore(), Calendar::Calendar(), Captcha::Captcha(), ConfigAbstractStorage::ConfigAbstractStorage(), Controller::Controller(), CustomUrlHandler::CustomUrlHandler(), Db::Db(), DbObject::DbObject(), EmailMessage::EmailMessage(), EmailService::EmailService(), Exception::Exception(), File::File(), FileFinder::FileFinder(), FileUploads::FileUploads(), FormValidator::FormValidator(), GalleryAbstractResizer::GalleryAbstractResizer(), GalleryItemsList::GalleryItemsList(), GalleryResizer::GalleryResizer(), GalleryResourceBaseMetadataReader::GalleryResourceBaseMetadataReader(), GalleryResourceStorage::GalleryResourceStorage(), GdDetector::GdDectector(), LinkParser::LinkParser(), Locale::Locale(), Locales::Locales(), MenuRenderer::MenuRenderer(), MimeType::MimeType(), Model::Model(), Path_parser::Path_parser(), Pipeline::Pipeline(), PipelineFilter::PipelineFilter(), PipelineRequest::PipelineRequest(), PluginBase::PluginBase(), PluginManager::PluginManager(), Properties::Properties(), Reflection::Reflection(), ResourceClassLoader::ResourceClassLoader(), SearchResult::SearchResult(), TemplateSandbox::TemplateSandbox(), TemplateService::TemplateService(), TemplateSet::TemplateSet(), TemplateSets::TemplateSets(), TemplateSetStorage::TemplateSetStorage(), TemplateUtils::TemplateUtils(), TextFilter::TextFilter(), Tokenizer::Tokenizer(), TrackbackClient::TrackbackClient(), Unpacker::Unpacker(), Url::Url(), UserComment::UserComment(), Validation::Validation(), ValidationList::ValidationList(), 及 View::View(). 00058 {
00059
00060
00061 if (is_object($this->log))
00062 $this->log->debug('Memory used: ' . memory_get_usage());
00063 }
|
函式成員說明文件
| Object::__getObjectId |
( |
|
) |
|
|
|
|
定義在 object.class.php 檔案之第 82 行.
參考 $vars.
被參考於 toString(). 00083 {
00084 $vars = get_object_vars( $this );
00085
00086 $keys = array_keys( $vars );
00087
00088 $res = "[";
00089
00090 foreach( $keys as $key )
00091 $res .= " ".$key."=".$vars[$key];
00092
00093 $res .= " ]";
00094
00095 return $res;
00096 }
|
|
|
Returns an array containing the methods available in this class - 傳回值:
- Array containing all the methods available in the object.
定義在 object.class.php 檔案之第 133 行. 00134 {
00135 return get_class_methods( $this );
00136 }
|
| Object::getParentClass |
( |
|
) |
|
|
|
|
Returns the name of the parent class - 傳回值:
- String containing the name of the parent class
定義在 object.class.php 檔案之第 111 行. 00112 {
00113 $parent_class_name = get_parent_class( $this );
00114
00115 return $parent_class_name;
00116 }
|
| Object::isSubclass |
( |
$ |
object |
) |
|
|
|
|
Returns true if the current class is a subclass of the given class - 參數:
-
- 傳回值:
- True if the object is a subclass of the given object or false otherwise.
定義在 object.class.php 檔案之第 124 行.
參考 className(). 00125 {
00126 return is_subclass_of( $this, $object->className());
00127 }
|
|
|
Returns a string with a representation of the class - 傳回值:
- The string representing the object
在Properties重新實作.
定義在 object.class.php 檔案之第 74 行.
參考 _dumpVars(). 00075 {
00076
00077 $ret_str = get_class( $this )." ".$this->_dumpVars();
00078
00079 return $ret_str;
00080 }
|
| Object::typeOf |
( |
$ |
object |
) |
|
|
|
|
Returns true if the class is of the given type.
- 參數:
-
- 傳回值:
- Returns true if they are of the same type or false otherwise.
定義在 object.class.php 檔案之第 144 行.
參考 className(). 00145 {
00146 return is_a( $this, $object->className());
00147 }
|
資料成員說明文件
此類別(class) 文件是由下列檔案中產生: