Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Zayceff committed Aug 7, 2014
1 parent 5141628 commit ee949a5
Show file tree
Hide file tree
Showing 63 changed files with 1,300 additions and 13 deletions.
16 changes: 16 additions & 0 deletions api_en/php/concurrent/TimeoutException.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
TimeoutException
-------------------------------

.. include:: /api_en.desc/php/concurrent/TimeoutException.header.rst

.. php:class:: php\\concurrent\\TimeoutException
**extends**: :doc:`php\\lang\\JavaException </api_en/php/lang/JavaException>`


Class TimeoutException



.. include:: /api_en.desc/php/concurrent/TimeoutException.footer.rst

1 change: 1 addition & 0 deletions api_en/php/concurrent/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ concurrent

ExecutorService.rst
Future.rst
TimeoutException.rst

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

5 changes: 2 additions & 3 deletions api_en/php/io/File.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,9 @@ File
:returns: :doc:`void </api_en/.types/void>`

.. php:method:: createNewFile()
**throws** :doc:`php\\io\\IOException </api_en/php/io/IOException>`
.. php:method:: createNewFile($withDirs = false)
:param $withDirs: :doc:`bool </api_en/.types/bool>`
:returns: :doc:`bool </api_en/.types/bool>`

.. php:method:: lastModified()
Expand Down
5 changes: 5 additions & 0 deletions api_en/php/io/ResourceStream.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ ResourceStream
:returns: :doc:`mixed </api_en/.types/mixed>`

.. php:staticmethod:: getResources($name)
:param $name: :doc:`string </api_en/.types/string>`
:returns: :doc:`php\\io\\ResourceStream[] </api_en/php/io/ResourceStream>`



.. include:: /api_en.desc/php/io/ResourceStream.footer.rst
Expand Down
16 changes: 16 additions & 0 deletions api_en/php/lang/InterruptedException.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
InterruptedException
-----------------------------

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

.. php:class:: php\\lang\\InterruptedException
**extends**: :doc:`php\\lang\\JavaException </api_en/php/lang/JavaException>`


Class InterruptedException



.. include:: /api_en.desc/php/lang/InterruptedException.footer.rst

2 changes: 2 additions & 0 deletions api_en/php/lang/JavaException.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ JavaException

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

* **class** :doc:`php\\concurrent\\TimeoutException </api_en/php/concurrent/TimeoutException>`
* **class** :doc:`php\\io\\IOException </api_en/php/io/IOException>`
* **class** :doc:`php\\lang\\IllegalArgumentException </api_en/php/lang/IllegalArgumentException>`
* **class** :doc:`php\\lang\\IllegalStateException </api_en/php/lang/IllegalStateException>`
* **class** :doc:`php\\lang\\InterruptedException </api_en/php/lang/InterruptedException>`
* **class** :doc:`php\\lang\\NumberFormatException </api_en/php/lang/NumberFormatException>`
* **class** :doc:`php\\net\\SocketException </api_en/php/net/SocketException>`
* **class** :doc:`php\\util\\RegexException </api_en/php/util/RegexException>`
Expand Down
89 changes: 89 additions & 0 deletions api_en/php/lang/Process.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
Process
----------------

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

.. php:class:: php\\lang\\Process
Class Process



**Methods**

----------

.. php:method:: __construct($commands, $directory = null)
:param $commands: :doc:`array </api_en/.types/array>`
:param $directory: :doc:`null </api_en/.types/null>`, :doc:`string </api_en/.types/string>`, :doc:`php\\io\\File </api_en/php/io/File>`

.. php:method:: start()
**throws** :doc:`php\\lang\\IllegalStateException </api_en/php/lang/IllegalStateException>`

:returns: :doc:`php\\lang\\Process </api_en/php/lang/Process>`

.. php:method:: startAndWait()
Causes the current thread to wait, if necessary, until the
process represented by this `Process` object has
terminated. This method returns immediately if the subprocess
has already terminated. If the subprocess has not yet
terminated, the calling thread will be blocked until the
subprocess exits.

**throws** :doc:`php\\lang\\IllegalStateException </api_en/php/lang/IllegalStateException>`

:returns: :doc:`php\\lang\\Process </api_en/php/lang/Process>`

.. php:method:: getExitValue()
Returns the exit value for the subprocess.

**throws** :doc:`php\\lang\\IllegalStateException </api_en/php/lang/IllegalStateException>`

:returns: :doc:`int </api_en/.types/int>`, :doc:`null </api_en/.types/null>` - null if process is working

.. php:method:: destroy()
Kills the subprocess. The subprocess represented by this
`Process` object is forcibly terminated.

**throws** :doc:`php\\lang\\IllegalStateException </api_en/php/lang/IllegalStateException>`


.. php:method:: getInput()
Returns the input stream connected to the normal output of the
subprocess. The stream obtains data piped from the standard
output of the process represented by this `Process` object.

**throws** :doc:`php\\lang\\IllegalStateException </api_en/php/lang/IllegalStateException>`

:returns: :doc:`php\\io\\Stream </api_en/php/io/Stream>`

.. php:method:: getOutput()
Returns the output stream connected to the normal input of the
subprocess. Output to the stream is piped into the standard
input of the process represented by this `Process` object.

**throws** :doc:`php\\lang\\IllegalStateException </api_en/php/lang/IllegalStateException>`

:returns: :doc:`php\\io\\Stream </api_en/php/io/Stream>`

.. php:method:: getError()
Returns the input stream connected to the error output of the
subprocess. The stream obtains data piped from the error output
of the process represented by this `Process` object.

**throws** :doc:`php\\lang\\IllegalStateException </api_en/php/lang/IllegalStateException>`

:returns: :doc:`php\\io\\Stream </api_en/php/io/Stream>`



.. include:: /api_en.desc/php/lang/Process.footer.rst

42 changes: 42 additions & 0 deletions api_en/php/lang/SettersGetters.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
SettersGetters
-----------------------

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

.. php:class:: php\\lang\\SettersGetters
To implement a property with a setter and getter, define the following methods::
protected __set[prop_name]($value) // for setter (or not if you want to implement a read-only property)
protected __get[prop_name]() // for getter

Class Properties



**Methods**

----------

.. php:method:: __set($name, $value)
:param $name:
:param $value:

.. php:method:: __get($name)
:param $name:
:returns: :doc:`mixed </api_en/.types/mixed>`

.. php:method:: __isset($name)
:param $name:

.. php:method:: __unset($name)
:param $name:



.. include:: /api_en.desc/php/lang/SettersGetters.footer.rst

3 changes: 3 additions & 0 deletions api_en/php/lang/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lang
Environment.rst
IllegalArgumentException.rst
IllegalStateException.rst
InterruptedException.rst
Invoker.rst
JavaClass.rst
JavaException.rst
Expand All @@ -19,6 +20,8 @@ lang
JavaReflection.rst
Module.rst
NumberFormatException.rst
Process.rst
SettersGetters.rst
System.rst
Thread.rst
ThreadGroup.rst
Expand Down
7 changes: 7 additions & 0 deletions api_en/php/lib/items.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ items
:param $withKeys: :doc:`bool </api_en/.types/bool>`
:returns: :doc:`array </api_en/.types/array>`

.. php:staticmethod:: toList($collection)
Example: items::toList(['x' => 10, 20], 30, ['x' => 50, 60]) -> [10, 20, 30, 50, 60]

:param $collection:
:returns: :doc:`array </api_en/.types/array>`

.. php:staticmethod:: keys($collection)
Returns all keys of collection
Expand Down
45 changes: 45 additions & 0 deletions api_en/php/net/HttpClient.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ HttpClient
.. php:class:: php\\net\\HttpClient
Class HttpClient

Cloneable



Expand All @@ -20,6 +22,34 @@ HttpClient
.. php:method:: setHeaders($headers)
:param $headers: :doc:`array </api_en/.types/array>`
:returns: :doc:`php\\net\\HttpClient </api_en/php/net/HttpClient>`

.. php:method:: setConnectTimeout($value)
:param $value: :doc:`int </api_en/.types/int>` - - in milliseconds
:returns: :doc:`php\\net\\HttpClient </api_en/php/net/HttpClient>`

.. php:method:: setSocketTimeout($value)
:param $value: :doc:`int </api_en/.types/int>` - - in milliseconds
:returns: :doc:`php\\net\\HttpClient </api_en/php/net/HttpClient>`

.. php:method:: setMaxRedirects($value)
:param $value: :doc:`int </api_en/.types/int>` - -1 means that no limits
:returns: :doc:`php\\net\\HttpClient </api_en/php/net/HttpClient>`

.. php:method:: setRedirectsEnabled($value)
:param $value: :doc:`bool </api_en/.types/bool>`
:returns: :doc:`php\\net\\HttpClient </api_en/php/net/HttpClient>`

.. php:method:: setProxy($hostname, $port = -1, $scheme = 'http')
:param $hostname: :doc:`string </api_en/.types/string>`
:param $port: :doc:`int </api_en/.types/int>`
:param $scheme: :doc:`string </api_en/.types/string>`
:returns: :doc:`php\\net\\HttpClient </api_en/php/net/HttpClient>`

.. php:method:: get($url)
Expand All @@ -41,6 +71,21 @@ HttpClient
:param $url:
:returns: :doc:`php\\net\\HttpRequest </api_en/php/net/HttpRequest>`

.. php:method:: head($url)
:param $url:
:returns: :doc:`php\\net\\HttpRequest </api_en/php/net/HttpRequest>`

.. php:method:: patch($url)
:param $url:
:returns: :doc:`php\\net\\HttpRequest </api_en/php/net/HttpRequest>`

.. php:method:: options($url)
:param $url:
:returns: :doc:`php\\net\\HttpRequest </api_en/php/net/HttpRequest>`



.. include:: /api_en.desc/php/net/HttpClient.footer.rst
Expand Down
49 changes: 49 additions & 0 deletions api_en/php/swing/Border.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Border

----------

.. php:method:: isOpaque()
:returns: :doc:`bool </api_en/.types/bool>`

.. php:staticmethod:: createEmpty($top, $left, $bottom, $right)
:param $top: :doc:`int </api_en/.types/int>`
Expand All @@ -21,6 +25,51 @@ Border
:param $right: :doc:`int </api_en/.types/int>`
:returns: :doc:`php\\swing\\Border </api_en/php/swing/Border>`

.. php:staticmethod:: createBevel($type, $highlightColor, $shadowColor)
:param $type: :doc:`string </api_en/.types/string>` - - RAISED or LOWERED
:param $highlightColor: :doc:`php\\swing\\Color </api_en/php/swing/Color>`, :doc:`array </api_en/.types/array>`, :doc:`int </api_en/.types/int>`
:param $shadowColor: :doc:`php\\swing\\Color </api_en/php/swing/Color>`, :doc:`array </api_en/.types/array>`, :doc:`int </api_en/.types/int>`
:returns: :doc:`php\\swing\\Border </api_en/php/swing/Border>`

.. php:staticmethod:: createSoftBevel($type, $highlightColor, $shadowColor)
:param $type: :doc:`string </api_en/.types/string>` - - RAISED or LOWERED
:param $highlightColor: :doc:`php\\swing\\Color </api_en/php/swing/Color>`, :doc:`array </api_en/.types/array>`, :doc:`int </api_en/.types/int>`
:param $shadowColor: :doc:`php\\swing\\Color </api_en/php/swing/Color>`, :doc:`array </api_en/.types/array>`, :doc:`int </api_en/.types/int>`
:returns: :doc:`php\\swing\\Border </api_en/php/swing/Border>`

.. php:staticmethod:: createEtchedBevel($type, $highlightColor, $shadowColor)
:param $type: :doc:`string </api_en/.types/string>` - - RAISED or LOWERED
:param $highlightColor: :doc:`php\\swing\\Color </api_en/php/swing/Color>`, :doc:`array </api_en/.types/array>`, :doc:`int </api_en/.types/int>`
:param $shadowColor: :doc:`php\\swing\\Color </api_en/php/swing/Color>`, :doc:`array </api_en/.types/array>`, :doc:`int </api_en/.types/int>`
:returns: :doc:`php\\swing\\Border </api_en/php/swing/Border>`

.. php:staticmethod:: createTitled($title, $border = null, $titleFont = null, $titleColor = null)
:param $title: :doc:`string </api_en/.types/string>`
:param $border: :doc:`php\\swing\\Border </api_en/php/swing/Border>`
:param $titleFont: :doc:`php\\swing\\Font </api_en/php/swing/Font>`
:param $titleColor: :doc:`php\\swing\\Color </api_en/php/swing/Color>`, :doc:`array </api_en/.types/array>`, :doc:`int </api_en/.types/int>`
:returns: :doc:`php\\swing\\Border </api_en/php/swing/Border>`

.. php:staticmethod:: createLine($color, $size = 1, $rounded = false)
:param $color: :doc:`php\\swing\\Color </api_en/php/swing/Color>`, :doc:`array </api_en/.types/array>`, :doc:`int </api_en/.types/int>`
:param $size: :doc:`int </api_en/.types/int>`
:param $rounded: :doc:`bool </api_en/.types/bool>`
:returns: :doc:`php\\swing\\Border </api_en/php/swing/Border>`

.. php:staticmethod:: createDashed($color, $thickness = 1, $length = 2, $spacing = 1, $rounded = false)
:param $color: :doc:`php\\swing\\Color </api_en/php/swing/Color>`, :doc:`array </api_en/.types/array>`, :doc:`int </api_en/.types/int>`
:param $thickness: :doc:`int </api_en/.types/int>`
:param $length: :doc:`int </api_en/.types/int>`
:param $spacing: :doc:`int </api_en/.types/int>`
:param $rounded: :doc:`bool </api_en/.types/bool>`
:returns: :doc:`php\\swing\\Border </api_en/php/swing/Border>`



.. include:: /api_en.desc/php/swing/Border.footer.rst
Expand Down
Loading

0 comments on commit ee949a5

Please sign in to comment.