Changing to code-block

This commit is contained in:
WireShout
2012-12-13 15:18:34 -05:00
parent 58a25f592b
commit be5dc61c63

View File

@@ -47,8 +47,10 @@ OC_Filesystem must be initiated before it can be used using the OC_Filesystem::i
Example:
``OC_Filesystem::init( '/' . $user . '/' . $root );
OC_Filesystem::mkdir( 'test' );
if ( OC_Filesystem::is_dir('test') ) { echo 'OC_Filesystem is being used correctly'; }``
.. code-block:: php
OC_Filesystem::init( '/' . $user . '/' . $root );
OC_Filesystem::mkdir( 'test' );
if ( OC_Filesystem::is_dir('test') ) { echo 'OC_Filesystem is being used correctly'; }``
.. _singleton pattern: https://en.wikipedia.org/wiki/Singleton_pattern
.. _singleton pattern: https://en.wikipedia.org/wiki/Singleton_pattern