Skip to content

Commit

Permalink
Updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
dim-s committed May 8, 2015
1 parent b9ba5df commit 6ce8895
Show file tree
Hide file tree
Showing 18 changed files with 388 additions and 205 deletions.
22 changes: 22 additions & 0 deletions api_en/BaseException.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
BaseException
-------------

.. include:: /api_en.desc/BaseException.header.rst

.. php:class:: BaseException
**abstract** class

**extends**: :doc:`Exception </api_en/Exception>`

**Children**

----------------------

* **class** :doc:`EngineException </api_en/EngineException>`
* **class** :doc:`ParseException </api_en/ParseException>`



.. include:: /api_en.desc/BaseException.footer.rst

24 changes: 24 additions & 0 deletions api_en/EngineException.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
EngineException
---------------

.. include:: /api_en.desc/EngineException.header.rst

.. php:class:: EngineException
**extends**: :doc:`BaseException </api_en/BaseException>`




**Methods**

----------

.. php:method:: getErrorType()
:returns: :doc:`int </api_en/.types/int>`



.. include:: /api_en.desc/EngineException.footer.rst

14 changes: 14 additions & 0 deletions api_en/ParseException.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ParseException
--------------

.. include:: /api_en.desc/ParseException.header.rst

.. php:class:: ParseException
**extends**: :doc:`BaseException </api_en/BaseException>`




.. include:: /api_en.desc/ParseException.footer.rst

20 changes: 4 additions & 16 deletions api_en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,10 @@ API (English)
.. toctree::
:maxdepth: 3

php/android/index
php/concurrent/index
php/format/index
php/gdx/index
php/io/index
php/jsoup/index
php/lang/index
php/lib/index
php/mail/index
php/net/index
php/sql/index
php/swing/index
php/time/index
php/util/index
php/webserver/index
php/xml/index
BaseException.rst
EngineException.rst
ParseException.rst
php/index

.. include:: /api_en.desc/index.footer.rst

9 changes: 9 additions & 0 deletions api_en/php/io/Stream.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ Stream
:param $data: :doc:`string </api_en/.types/string>`
:param $mode: :doc:`string </api_en/.types/string>`

.. php:staticmethod:: exists($path)
Checks stream is exists. It tries to open a stream and if all is ok, returns true and closes it.

**throws** :doc:`php\\io\\\\Exception </api_en/php/io//Exception>` if you check external streams like http or ftp

:param $path: :doc:`string </api_en/.types/string>`
:returns: :doc:`bool </api_en/.types/bool>`

.. php:staticmethod:: register($protocol, $className)
:param $protocol: :doc:`string </api_en/.types/string>`
Expand Down
33 changes: 33 additions & 0 deletions api_en/php/lang/ClassLoader.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
ClassLoader
--------------------

.. include:: /api_en.desc/php/lang/ClassLoader.header.rst

.. php:class:: php\\lang\\ClassLoader
**abstract** class




**Methods**

----------

.. php:method:: loadClass($name)
**abstract**


:param $name: :doc:`string </api_en/.types/string>`

.. php:method:: register()
.. php:method:: unregister()
.. include:: /api_en.desc/php/lang/ClassLoader.footer.rst

3 changes: 3 additions & 0 deletions api_en/php/lang/Environment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ Environment

:param $functionName: :doc:`string </api_en/.types/string>`

.. php:method:: importAutoLoaders()
.. php:method:: defineConstant($name, $value, $caseSensitive = true)
**throws** :doc:`php\\lang\\\\Exception </api_en/php/lang//Exception>` - if constant already registered or value is not scalar type
Expand Down
42 changes: 0 additions & 42 deletions api_en/php/lang/GettersSetters.rst

This file was deleted.

42 changes: 0 additions & 42 deletions api_en/php/lang/SettersGetters.rst

This file was deleted.

3 changes: 1 addition & 2 deletions api_en/php/lang/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ lang
.. toctree::
:maxdepth: 3

ClassLoader.rst
Environment.rst
GettersSetters.rst
IllegalArgumentException.rst
IllegalStateException.rst
InterruptedException.rst
Expand All @@ -22,7 +22,6 @@ lang
Module.rst
NumberFormatException.rst
Process.rst
SettersGetters.rst
System.rst
Thread.rst
ThreadGroup.rst
Expand Down
4 changes: 4 additions & 0 deletions api_en/php/net/ServerSocket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ ServerSocket
:param $latency: :doc:`int </api_en/.types/int>`
:param $bandWidth: :doc:`int </api_en/.types/int>`

.. php:staticmethod:: findAvailableLocalPort()
:returns: :doc:`int </api_en/.types/int>`



.. include:: /api_en.desc/php/net/ServerSocket.footer.rst
Expand Down

0 comments on commit 6ce8895

Please sign in to comment.