NewsNewsFeaturesDownloadsDevelopmentSupportForumDocumentsAbout Us

Object 類別 參考文件
[Core]

類別Object的繼承圖:

Action ActionInfo Article BaseRequestGenerator BaseUnpacker BayesianFilterCore CacheControl Calendar Captcha Client Config ConfigAbstractStorage Controller CustomFieldValueFactory CustomUrlHandler Db DbObject Dns EmailMessage EmailService Exception File FileFinder FileUpload FileUploads FormValidator GalleryAbstractResizer GalleryItemsList GalleryResizer GalleryResourceBaseMetadataReader GalleryResourceQuotas GalleryResourceStorage GalleryTemplateTools GdDetector GenericStatusList Glob HttpVars JalaliCalendar LinkFormatMatcher LinkParser Locale Locales MenuRenderer MimeType Model Observable OsDetect Pager Path_parser Pipeline PipelineFilter PipelineRequest PipelineResult PluginBase PluginManager PrettyRequestParser Properties Reflection ResourceClassLoader RSSChannel RssEnclosure RSSItem RSSParser SearchResult SessionManager StringUtils Subdomains SummaryTools TemplateSandbox TemplateService TemplateSet TemplateSets TemplateSetStorage TemplateUtils TextFilter Tokenizer TrackbackClient Unpacker Url Validation ValidationList View WizardTools 全部成員列表

公開方法(Public Methods)

 Object ()
 __getObjectId ()
 toString ()
 _dumpVars ()
 className ()
 getParentClass ()
 isSubclass ($object)
 getMethods ()
 typeOf ($object)

公開屬性

 $_objId
 $log

詳細描述

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 行.


建構子與解構子說明文件

Object::Object  ) 
 

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             // initialize logging -- enable this only for debugging purposes
00060             //$this->log =& LoggerManager::getLogger( "default" );
00061             if (is_object($this->log))
00062                 $this->log->debug('Memory used: ' . memory_get_usage());
00063         }


函式成員說明文件

Object::__getObjectId  ) 
 

定義在 object.class.php 檔案之第 65 行.

00066         {
00067             return $this->_objId;
00068         }

Object::_dumpVars  ) 
 

定義在 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         }

Object::className  ) 
 

Returns the name of the class

傳回值:
String with the name of the class

定義在 object.class.php 檔案之第 102 行.

被參考於 View::getSessionValue(), isSubclass(), BlogView::notifyEvent(), AdminView::notifyEvent(), View::setSessionValue(), 及 typeOf().

00103         {
00104             return get_class( $this );
00105         }

Object::getMethods  ) 
 

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

參數:
$object The object.
傳回值:
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         }

Object::toString  ) 
 

Returns a string with a representation of the class

傳回值:
The string representing the object

Properties重新實作.

定義在 object.class.php 檔案之第 74 行.

參考 _dumpVars().

00075         {
00076             // returns the name of the class
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.

參數:
object Object
傳回值:
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         }


資料成員說明文件

Object::$_objId
 

定義在 object.class.php 檔案之第 51 行.

Object::$log
 

定義在 object.class.php 檔案之第 52 行.

被參考於 Model::Execute().


此類別(class) 文件是由下列檔案中產生: