downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Constante predefinite> <Lista cuvintelor-cheie
Last updated: Fri, 20 Nov 2009

view this page in

Clase predefinite

Această secţiune prezintă clasele standarde predefinite. Diferite extensii definesc alte clase care sunt descrise în referinţele lor.

Clase standarde definite

Aceste clase sunt definite în setul standard de funcţii inclus în distribuţia PHP.

Directory
Clasa de la care se instanţiază dir.
stdClass
__PHP_Incomplete_Class

Clase predefinite începând cu PHP 5

Aceste clase predefinite suplimentare au fost introduse în PHP 5.0.0.

exception
php_user_filter

Closure

Clasa predefinită finală Closure a fost introdusă în PHP 5.3.0. Ea este utilizată pentru implementarea internă a funcţiilor anonime.

Clasa are un constructor ce interzice crearea manuală a obiectului (emite o eroare E_RECOVERABLE_ERROR) şi apelarea metodei __invoke cu ajutorul magiei de apelare.

Clase speciale

Următorii identificatori nu pot fi utilizaţi ca denumiri de clase, deoarece au destinaţii speciale.

self
parent


Constante predefinite> <Lista cuvintelor-cheie
Last updated: Fri, 20 Nov 2009
 
add a note add a note User Contributed Notes
Clase predefinite
Typer85 at gmail dot com
17-Feb-2007 04:58
In response to the note below mine,

This list is not incomplete. Read the Manual folks, its listed there plain and simple:

"This section lists standard predefined classes. Miscellaneous extensions define other classes which are described in their reference."

Depending on what extensions you have, they might define their own classes. This list is just the standard classes as defined by PHP with no regards to extensions.
Simon Kissane
14-Sep-2004 07:54
The above list is incomplete. For example, on my PHP 5.0 configuration (yours may differ depending on the extensions you choose to install), the following classes are predefined:

== "Core" ==
stdClass
Exception
__PHP_Incomplete_Class
php_user_filter
Directory

== Reflection API ==
ReflectionException
Reflection
ReflectionFunction
ReflectionParameter
ReflectionMethod
ReflectionClass
ReflectionObject
ReflectionProperty
ReflectionExtension

== SQLLite ==
SQLiteDatabase
SQLiteResult
SQLiteUnbuffered
SQLiteException

== Standard PHP Lib. ==
RecursiveIteratorIterator
FilterIterator
ParentIterator
LimitIterator
CachingIterator
CachingRecursiveIterator
ArrayObject
ArrayIterator
DirectoryIterator
RecursiveDirectoryIterator

== SimpleXML ==
SimpleXMLElement
SimpleXMLIterator

== DOM/XSL/XPath extensions ==
DOMException
DOMStringList
DOMNameList
DOMImplementationList
DOMImplementationSource
DOMImplementation
DOMNode
DOMNameSpaceNode
DOMDocumentFragment
DOMDocument
DOMNodeList
DOMNamedNodeMap
DOMCharacterData
DOMAttr
DOMElement
DOMText
DOMComment
DOMTypeinfo
DOMUserDataHandler
DOMDomError
DOMErrorHandler
DOMLocator
DOMConfiguration
DOMCdataSection
DOMDocumentType
DOMNotation
DOMEntity
DOMEntityReference
DOMProcessingInstruction
DOMStringExtend
DOMXPath
XSLTProcessor
unknown
23-Jul-2002 05:29
It's handy to have a array of the reserved classes.....
var_dump (get_declared_classes ());

Constante predefinite> <Lista cuvintelor-cheie
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites