Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
New Crowdin translations (#1064)
Browse files Browse the repository at this point in the history
* New translations Phalcon_Crypt.md (Vietnamese)

* New translations Phalcon_Crypt.md (Ukrainian)

* New translations Phalcon_Crypt.md (Turkish)

* New translations Phalcon_Crypt.md (Spanish)

* New translations Phalcon_Crypt.md (Japanese)

* New translations Phalcon_Crypt.md (Indonesian)

* New translations Phalcon_Crypt.md (Polish)

* New translations Phalcon_Crypt.md (Portuguese)

* New translations Phalcon_Crypt.md (Russian)

* New translations Phalcon_Config_Adapter_Json.md (French)

* New translations Phalcon_Config_Adapter_Json.md (Czech)

* New translations Phalcon_Cli_Task.md (Arabic)

* New translations Phalcon_Cli_Task.md (Bulgarian)

* New translations Phalcon_Cli_Task.md (Bosnian)

* New translations Phalcon_Cli_Task.md (Chinese Simplified)

* New translations Phalcon_Cli_Task.md (Croatian)

* New translations Phalcon_Cli_Task.md (Russian)

* New translations Phalcon_Cli_Task.md (Portuguese)

* New translations Phalcon_Cli_Task.md (Spanish)

* New translations Phalcon_Cli_Task.md (Turkish)

* New translations Phalcon_Cli_Task.md (Vietnamese)

* New translations Phalcon_Cli_Task.md (Ukrainian)

* New translations Phalcon_Cli_Task.md (Polish)

* New translations Phalcon_Cli_Task.md (Japanese)

* New translations Phalcon_Cli_Task.md (French)

* New translations Phalcon_Cli_Task.md (Czech)

* New translations Phalcon_Cli_Task.md (German)

* New translations Phalcon_Cli_Task.md (Greek)

* New translations Phalcon_Cli_Task.md (Indonesian)

* New translations Phalcon_Cli_Task.md (Hungarian)

* New translations Phalcon_Cli_Router_Route.md (Czech)

* New translations Phalcon_Cli_Router_Route.md (Croatian)

* New translations Phalcon_Cli_Router_Route.md (French)

* New translations Phalcon_Cli_Router_Route.md (German)

* New translations Phalcon_Cli_Router_Route.md (Hungarian)

* New translations Phalcon_Cli_Router_Route.md (Greek)

* New translations Phalcon_Cli_Router_Route.md (Chinese Simplified)

* New translations Phalcon_Cli_Router_Route.md (Bulgarian)

* New translations Phalcon_Cli_Router_Exception.md (Turkish)

* New translations Phalcon_Cli_Router_Exception.md (Ukrainian)

* New translations Phalcon_Cli_Router_Exception.md (Vietnamese)

* New translations Phalcon_Cli_Router_Route.md (Bosnian)

* New translations Phalcon_Cli_Router_Route.md (Arabic)

* New translations Phalcon_Cli_Router_Route.md (Indonesian)

* New translations Phalcon_Cli_Router_Route.md (Japanese)

* New translations Phalcon_Cli_Router_Route.md (Vietnamese)

* New translations Phalcon_Cli_Router_Route.md (Ukrainian)

* New translations Phalcon_Cli_Router_Route.md (Portuguese)

* New translations Phalcon_Cli_Router_Route.md (Polish)

* New translations Phalcon_Cli_Router_Route.md (Russian)

* New translations Phalcon_Cli_Router_Route.md (Spanish)

* New translations Phalcon_Cli_Router_Route.md (Turkish)

* New translations Phalcon_Config_Adapter_Ini.md (Croatian)

* New translations Phalcon_Config_Adapter_Ini.md (Chinese Simplified)

* New translations Phalcon_Config_Adapter_Ini.md (Czech)

* New translations Phalcon_Config_Adapter_Ini.md (French)

* New translations Phalcon_Config_Adapter_Ini.md (Greek)

* New translations Phalcon_Config_Adapter_Ini.md (German)

* New translations Phalcon_Config_Adapter_Ini.md (Bulgarian)

* New translations Phalcon_Config_Adapter_Ini.md (Bosnian)

* New translations Phalcon_Config.md (Spanish)

* New translations Phalcon_Config.md (Russian)

* New translations Phalcon_Config.md (Turkish)

* New translations Phalcon_Config.md (Ukrainian)

* New translations Phalcon_Config_Adapter_Ini.md (Arabic)

* New translations Phalcon_Config.md (Vietnamese)

* New translations Phalcon_Config_Adapter_Ini.md (Hungarian)

* New translations Phalcon_Config_Adapter_Ini.md (Indonesian)

* New translations Phalcon_Config_Adapter_Json.md (Arabic)

* New translations Phalcon_Config_Adapter_Ini.md (Vietnamese)

* New translations Phalcon_Config_Adapter_Json.md (Bosnian)

* New translations Phalcon_Config_Adapter_Json.md (Bulgarian)

* New translations Phalcon_Config_Adapter_Json.md (Croatian)

* New translations Phalcon_Config_Adapter_Json.md (Chinese Simplified)

* New translations Phalcon_Config_Adapter_Ini.md (Ukrainian)

* New translations Phalcon_Config_Adapter_Ini.md (Turkish)

* New translations Phalcon_Config_Adapter_Ini.md (Polish)

* New translations Phalcon_Config_Adapter_Ini.md (Japanese)

* New translations Phalcon_Config_Adapter_Ini.md (Portuguese)

* New translations Phalcon_Config_Adapter_Ini.md (Russian)

* New translations Phalcon_Config_Adapter_Ini.md (Spanish)

* New translations Phalcon_Config.md (Portuguese)

* New translations Phalcon_Config.md (Polish)

* New translations Phalcon_Config.md (German)

* New translations Phalcon_Config.md (French)

* New translations Phalcon_Config.md (Greek)

* New translations Phalcon_Config.md (Hungarian)

* New translations Phalcon_Config.md (Japanese)

* New translations Phalcon_Config.md (Indonesian)

* New translations Phalcon_Config.md (Czech)

* New translations Phalcon_Config.md (Croatian)

* New translations Phalcon_Config.md (Arabic)

* New translations Phalcon_Config.md (Bosnian)

* New translations Phalcon_Config.md (Bulgarian)

* New translations Phalcon_Config.md (Chinese Simplified)

* New translations Phalcon_Forms_Element_Date.md (Czech)

* New translations Phalcon_Forms_Element_Date.md (Croatian)

* New translations Phalcon_Forms_Element_Date.md (French)

* New translations Phalcon_Forms_Element_Date.md (German)

* New translations Phalcon_Forms_Element_Date.md (Hungarian)

* New translations Phalcon_Forms_Element_Date.md (Greek)

* New translations Phalcon_Forms_Element_Date.md (Chinese Simplified)

* New translations Phalcon_Forms_Element_Date.md (Bulgarian)

* New translations Phalcon_Forms_Element_Check.md (Turkish)

* New translations Phalcon_Forms_Element_Check.md (Spanish)

* New translations Phalcon_Forms_Element_Check.md (Ukrainian)

* New translations Phalcon_Forms_Element_Check.md (Vietnamese)

* New translations Phalcon_Forms_Element_Date.md (Bosnian)

* New translations Phalcon_Forms_Element_Date.md (Arabic)

* New translations Phalcon_Forms_Element_Date.md (Indonesian)

* New translations Phalcon_Forms_Element_Date.md (Japanese)

* New translations Phalcon_Forms_Element_Email.md (Bulgarian)

* New translations Phalcon_Forms_Element_Email.md (Bosnian)

* New translations Phalcon_Forms_Element_Email.md (Chinese Simplified)

* New translations Phalcon_Forms_Element_Email.md (Croatian)

* New translations Phalcon_Forms_Element_Email.md (French)

* New translations Phalcon_Forms_Element_Email.md (Czech)

* New translations Phalcon_Forms_Element_Email.md (Arabic)

* New translations Phalcon_Forms_Element_Date.md (Vietnamese)

* New translations Phalcon_Forms_Element_Date.md (Portuguese)

* New translations Phalcon_Forms_Element_Date.md (Polish)

* New translations Phalcon_Forms_Element_Date.md (Russian)

* New translations Phalcon_Forms_Element_Date.md (Spanish)

* New translations Phalcon_Forms_Element_Date.md (Ukrainian)

* New translations Phalcon_Forms_Element_Date.md (Turkish)

* New translations Phalcon_Forms_Element_Check.md (Russian)

* New translations Phalcon_Forms_Element_Check.md (Portuguese)

* New translations Phalcon_Forms_ElementInterface.md (Polish)

* New translations Phalcon_Forms_ElementInterface.md (Japanese)

* New translations Phalcon_Forms_ElementInterface.md (Portuguese)

* New translations Phalcon_Forms_ElementInterface.md (Russian)

* New translations Phalcon_Forms_ElementInterface.md (Turkish)

* New translations Phalcon_Forms_ElementInterface.md (Spanish)

* New translations Phalcon_Forms_ElementInterface.md (Indonesian)

* New translations Phalcon_Forms_ElementInterface.md (Hungarian)

* New translations Phalcon_Forms_ElementInterface.md (Croatian)

* New translations Phalcon_Forms_ElementInterface.md (Chinese Simplified)

* New translations Phalcon_Forms_ElementInterface.md (Czech)

* New translations Phalcon_Forms_ElementInterface.md (French)

* New translations Phalcon_Forms_ElementInterface.md (Greek)

* New translations Phalcon_Forms_ElementInterface.md (German)

* New translations Phalcon_Forms_ElementInterface.md (Ukrainian)

* New translations Phalcon_Forms_ElementInterface.md (Vietnamese)

* New translations Phalcon_Forms_Element_Check.md (Greek)

* New translations Phalcon_Forms_Element_Check.md (German)

* New translations Phalcon_Forms_Element_Check.md (Hungarian)

* New translations Phalcon_Forms_Element_Check.md (Indonesian)

* New translations Phalcon_Forms_Element_Check.md (Polish)

* New translations Phalcon_Forms_Element_Check.md (Japanese)

* New translations Phalcon_Forms_Element_Check.md (French)

* New translations Phalcon_Forms_Element_Check.md (Czech)

* New translations Phalcon_Forms_Element_Check.md (Bosnian)

* New translations Phalcon_Forms_Element_Check.md (Arabic)

* New translations Phalcon_Forms_Element_Check.md (Bulgarian)

* New translations Phalcon_Forms_Element_Check.md (Chinese Simplified)

* New translations Phalcon_Forms_Element_Check.md (Croatian)

* New translations Phalcon_Forms_Element_Email.md (German)

* New translations Phalcon_Forms_Element_Email.md (Greek)

* New translations Phalcon_Forms_Element_Hidden.md (Japanese)

* New translations Phalcon_Forms_Element_Hidden.md (Indonesian)

* New translations Phalcon_Forms_Element_Hidden.md (Polish)

* New translations Phalcon_Forms_Element_Hidden.md (Portuguese)

* New translations Phalcon_Forms_Element_Hidden.md (Spanish)

* New translations Phalcon_Forms_Element_Hidden.md (Russian)

* New translations Phalcon_Forms_Element_Hidden.md (Hungarian)

* New translations Phalcon_Forms_Element_Hidden.md (Greek)

* New translations Phalcon_Forms_Element_Hidden.md (Chinese Simplified)

* New translations Phalcon_Forms_Element_Hidden.md (Bulgarian)

* New translations Phalcon_Forms_Element_Hidden.md (Croatian)

* New translations Phalcon_Forms_Element_Hidden.md (Czech)

* New translations Phalcon_Forms_Element_Hidden.md (German)

* New translations Phalcon_Forms_Element_Hidden.md (French)

* New translations Phalcon_Forms_Element_Hidden.md (Turkish)

* New translations Phalcon_Forms_Element_Hidden.md (Ukrainian)

* New translations Phalcon_Forms_Element_Numeric.md (Greek)

* New translations Phalcon_Forms_Element_Numeric.md (German)

* New translations Phalcon_Forms_Element_Numeric.md (Hungarian)

* New translations Phalcon_Forms_Element_Numeric.md (Indonesian)

* New translations Phalcon_Forms_Element_Numeric.md (Polish)

* New translations Phalcon_Forms_Element_Numeric.md (Japanese)

* New translations Phalcon_Forms_Element_Numeric.md (French)

* New translations Phalcon_Forms_Element_Numeric.md (Czech)

* New translations Phalcon_Forms_Element_Numeric.md (Arabic)

* New translations Phalcon_Forms_Element_Hidden.md (Vietnamese)

* New translations Phalcon_Forms_Element_Numeric.md (Bosnian)

* New translations Phalcon_Forms_Element_Numeric.md (Bulgarian)

* New translations Phalcon_Forms_Element_Numeric.md (Croatian)

* New translations Phalcon_Forms_Element_Numeric.md (Chinese Simplified)

* New translations Phalcon_Forms_Element_Hidden.md (Bosnian)

* New translations Phalcon_Forms_Element_Hidden.md (Arabic)

* New translations Phalcon_Forms_Element_Email.md (Vietnamese)

* New translations Phalcon_Forms_Element_Email.md (Ukrainian)

* New translations Phalcon_Forms_Element_File.md (Arabic)

* New translations Phalcon_Forms_Element_File.md (Bosnian)

* New translations Phalcon_Forms_Element_File.md (Chinese Simplified)

* New translations Phalcon_Forms_Element_File.md (Bulgarian)

* New translations Phalcon_Forms_Element_Email.md (Turkish)

* New translations Phalcon_Forms_Element_Email.md (Spanish)

* New translations Phalcon_Forms_Element_Email.md (Indonesian)

* New translations Phalcon_Forms_Element_Email.md (Hungarian)

* New translations Phalcon_Forms_Element_Email.md (Japanese)

* New translations Phalcon_Forms_Element_Email.md (Polish)

* New translations Phalcon_Forms_Element_Email.md (Russian)

* New translations Phalcon_Forms_Element_Email.md (Portuguese)

* New translations Phalcon_Forms_Element_File.md (Croatian)

* New translations Phalcon_Forms_Element_File.md (Czech)

* New translations Phalcon_Forms_Element_File.md (Russian)

* New translations Phalcon_Forms_Element_File.md (Portuguese)

* New translations Phalcon_Forms_Element_File.md (Spanish)

* New translations Phalcon_Forms_Element_File.md (Turkish)

* New translations Phalcon_Forms_Element_File.md (Vietnamese)

* New translations Phalcon_Forms_Element_File.md (Ukrainian)

* New translations Phalcon_Forms_Element_File.md (Polish)

* New translations Phalcon_Forms_Element_File.md (Japanese)

* New translations Phalcon_Forms_Element_File.md (German)

* New translations Phalcon_Forms_Element_File.md (French)

* New translations Phalcon_Forms_Element_File.md (Greek)

* New translations Phalcon_Forms_Element_File.md (Hungarian)

* New translations Phalcon_Forms_Element_File.md (Indonesian)

* New translations Phalcon_Forms_ElementInterface.md (Bulgarian)

* New translations Phalcon_Forms_ElementInterface.md (Bosnian)

* New translations Phalcon_Flash_Direct.md (Arabic)

* New translations Phalcon_Flash_Direct.md (Indonesian)

* New translations Phalcon_Flash_Direct.md (Hungarian)

* New translations Phalcon_Flash_Direct.md (Japanese)

* New translations Phalcon_Flash_Direct.md (Polish)

* New translations Phalcon_Flash_Direct.md (Russian)

* New translations Phalcon_Flash_Direct.md (Portuguese)

* New translations Phalcon_Flash_Direct.md (Greek)

* New translations Phalcon_Flash_Direct.md (German)

* New translations Phalcon_Flash_Direct.md (Bulgarian)

* New translations Phalcon_Flash_Direct.md (Bosnian)

* New translations Phalcon_Flash_Direct.md (Chinese Simplified)

* New translations Phalcon_Flash_Direct.md (Croatian)

* New translations Phalcon_Flash_Direct.md (French)

* New translations Phalcon_Flash_Direct.md (Czech)

* New translations Phalcon_Flash.md (Bosnian)

* New translations Phalcon_Flash.md (Arabic)

* New translations Phalcon_Flash.md (Bulgarian)

* New translations Phalcon_Flash.md (Chinese Simplified)

* New translations Phalcon_Flash.md (Czech)

* New translations Phalcon_Flash.md (Croatian)

* New translations Phalcon_Flash.md (French)

* New translations Phalcon_Flash.md (German)

* New translations Phalcon_Flash.md (Turkish)

* New translations Phalcon_Flash.md (Spanish)

* New translations Phalcon_Flash.md (Ukrainian)

* New translations Phalcon_Flash.md (Vietnamese)

* New translations Phalcon_Flash.md (Russian)

* New translations Phalcon_Flash.md (Portuguese)
  • Loading branch information
niden committed Jul 1, 2017
1 parent f4dfc2a commit cd52be3
Show file tree
Hide file tree
Showing 347 changed files with 7,341 additions and 5,156 deletions.
4 changes: 2 additions & 2 deletions ar/api/Phalcon_Cli_Router_Route.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $router->add(

```

public [Phalcon\Cli\Router\Route](/en/3.1.2/api/Phalcon_Cli_Router_Route) **beforeMatch** (*callback* $callback)
public [Phalcon\Cli\Router\Route](/en/3.2/api/Phalcon_Cli_Router_Route) **beforeMatch** (*callback* $callback)

Sets a callback that is called if the route is matched. The developer can implement any arbitrary conditions here If the callback returns false the route is treated as not matched

Expand Down Expand Up @@ -74,7 +74,7 @@ public **getReversedPaths** ()

Returns the paths using positions as keys and names as values

public [Phalcon\Cli\Router\Route](/en/3.1.2/api/Phalcon_Cli_Router_Route) **convert** (*string* $name, *callable* $converter)
public [Phalcon\Cli\Router\Route](/en/3.2/api/Phalcon_Cli_Router_Route) **convert** (*string* $name, *callable* $converter)

Adds a converter to perform an additional transformation for certain parameter

Expand Down
14 changes: 7 additions & 7 deletions ar/api/Phalcon_Cli_Task.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Class **Phalcon\\Cli\\Task**

*extends* abstract class [Phalcon\Di\Injectable](/en/3.1.2/api/Phalcon_Di_Injectable)
*extends* abstract class [Phalcon\Di\Injectable](/en/3.2/api/Phalcon_Di_Injectable)

*implements* [Phalcon\Events\EventsAwareInterface](/en/3.1.2/api/Phalcon_Events_EventsAwareInterface), [Phalcon\Di\InjectionAwareInterface](/en/3.1.2/api/Phalcon_Di_InjectionAwareInterface), [Phalcon\Cli\TaskInterface](/en/3.1.2/api/Phalcon_Cli_TaskInterface)
*implements* [Phalcon\Events\EventsAwareInterface](/en/3.2/api/Phalcon_Events_EventsAwareInterface), [Phalcon\Di\InjectionAwareInterface](/en/3.2/api/Phalcon_Di_InjectionAwareInterface), [Phalcon\Cli\TaskInterface](/en/3.2/api/Phalcon_Cli_TaskInterface)

<a href="https://github.com/phalcon/cphalcon/blob/master/phalcon/cli/task.zep" class="btn btn-default btn-sm">Source on GitHub</a>

Expand Down Expand Up @@ -35,22 +35,22 @@ final public **__construct** ()

Phalcon\\Cli\\Task constructor

public **setDI** ([Phalcon\DiInterface](/en/3.1.2/api/Phalcon_DiInterface) $dependencyInjector) inherited from [Phalcon\Di\Injectable](/en/3.1.2/api/Phalcon_Di_Injectable)
public **setDI** ([Phalcon\DiInterface](/en/3.2/api/Phalcon_DiInterface) $dependencyInjector) inherited from [Phalcon\Di\Injectable](/en/3.2/api/Phalcon_Di_Injectable)

Sets the dependency injector

public **getDI** () inherited from [Phalcon\Di\Injectable](/en/3.1.2/api/Phalcon_Di_Injectable)
public **getDI** () inherited from [Phalcon\Di\Injectable](/en/3.2/api/Phalcon_Di_Injectable)

Returns the internal dependency injector

public **setEventsManager** ([Phalcon\Events\ManagerInterface](/en/3.1.2/api/Phalcon_Events_ManagerInterface) $eventsManager) inherited from [Phalcon\Di\Injectable](/en/3.1.2/api/Phalcon_Di_Injectable)
public **setEventsManager** ([Phalcon\Events\ManagerInterface](/en/3.2/api/Phalcon_Events_ManagerInterface) $eventsManager) inherited from [Phalcon\Di\Injectable](/en/3.2/api/Phalcon_Di_Injectable)

Sets the event manager

public **getEventsManager** () inherited from [Phalcon\Di\Injectable](/en/3.1.2/api/Phalcon_Di_Injectable)
public **getEventsManager** () inherited from [Phalcon\Di\Injectable](/en/3.2/api/Phalcon_Di_Injectable)

Returns the internal event manager

public **__get** (*mixed* $propertyName) inherited from [Phalcon\Di\Injectable](/en/3.1.2/api/Phalcon_Di_Injectable)
public **__get** (*mixed* $propertyName) inherited from [Phalcon\Di\Injectable](/en/3.2/api/Phalcon_Di_Injectable)

Magic method __get
25 changes: 24 additions & 1 deletion ar/api/Phalcon_Config.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ $config = new \Phalcon\Config(

```

## Constants

*string* **DEFAULT_PATH_DELIMITER**

## Methods

public **__construct** ([*array* $arrayConfig])
Expand All @@ -47,6 +51,17 @@ var_dump(

```

public **path** (*mixed* $path, [*mixed* $defaultValue], [*mixed* $delimiter])

Returns a value from current config using a dot separated path.

```php
<?php

echo $config->path("unknown.path", "default", ".");

```

public **get** (*mixed* $index, [*mixed* $defaultValue])

Gets an attribute from the configuration, if the attribute isn't defined returns null If the value is exactly null or is not defined the default value will be used instead
Expand Down Expand Up @@ -95,7 +110,7 @@ unset($config["database"]);

```

public **merge** ([Phalcon\Config](/en/3.1.2/api/Phalcon_Config) $config)
public **merge** ([Phalcon\Config](/en/3.2/api/Phalcon_Config) $config)

Merges a configuration into the current one

Expand Down Expand Up @@ -151,6 +166,14 @@ public static **__set_state** (*array* $data)

Restores the state of a Phalcon\\Config object

public static **setPathDelimiter** ([*mixed* $delimiter])

Sets the default path delimiter

public static **getPathDelimiter** ()

Gets the default path delimiter

final protected *Config merged config* **_merge** (*Config* $config, [*mixed* $instance])

Helper method for merge configs (forwarding nested config instance)
45 changes: 34 additions & 11 deletions ar/api/Phalcon_Config_Adapter_Ini.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Class **Phalcon\\Config\\Adapter\\Ini**

*extends* class [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
*extends* class [Phalcon\Config](/en/3.2/api/Phalcon_Config)

*implements* [Countable](http://php.net/manual/en/class.countable.php), [ArrayAccess](http://php.net/manual/en/class.arrayaccess.php)

Expand Down Expand Up @@ -51,6 +51,10 @@ $config = new \Phalcon\Config\Adapter\Ini(

```

## Constants

*string* **DEFAULT_PATH_DELIMITER**

## Methods

public **__construct** (*mixed* $filePath, [*mixed* $mode])
Expand Down Expand Up @@ -81,7 +85,7 @@ protected **_cast** (*mixed* $ini)

We have to cast values manually because parse_ini_file() has a poor implementation.

public **offsetExists** (*mixed* $index) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **offsetExists** (*mixed* $index) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Allows to check whether an attribute is defined using the array-syntax

Expand All @@ -94,7 +98,18 @@ var_dump(

```

public **get** (*mixed* $index, [*mixed* $defaultValue]) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **path** (*mixed* $path, [*mixed* $defaultValue], [*mixed* $delimiter]) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Returns a value from current config using a dot separated path.

```php
<?php

echo $config->path("unknown.path", "default", ".");

```

public **get** (*mixed* $index, [*mixed* $defaultValue]) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Gets an attribute from the configuration, if the attribute isn't defined returns null If the value is exactly null or is not defined the default value will be used instead

Expand All @@ -105,7 +120,7 @@ echo $config->get("controllersDir", "../app/controllers/");

```

public **offsetGet** (*mixed* $index) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **offsetGet** (*mixed* $index) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Gets an attribute using the array-syntax

Expand All @@ -118,7 +133,7 @@ print_r(

```

public **offsetSet** (*mixed* $index, *mixed* $value) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **offsetSet** (*mixed* $index, *mixed* $value) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Sets an attribute using the array-syntax

Expand All @@ -131,7 +146,7 @@ $config["database"] = [

```

public **offsetUnset** (*mixed* $index) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **offsetUnset** (*mixed* $index) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Unsets an attribute using the array-syntax

Expand All @@ -142,7 +157,7 @@ unset($config["database"]);

```

public **merge** ([Phalcon\Config](/en/3.1.2/api/Phalcon_Config) $config) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **merge** ([Phalcon\Config](/en/3.2/api/Phalcon_Config) $config) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Merges a configuration into the current one

Expand All @@ -161,7 +176,7 @@ $globalConfig->merge($appConfig);

```

public **toArray** () inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **toArray** () inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Converts recursively the object to an array

Expand All @@ -174,7 +189,7 @@ print_r(

```

public **count** () inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **count** () inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Returns the count of properties set in the config

Expand All @@ -194,10 +209,18 @@ print $config->count();

```

public static **__set_state** (*array* $data) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public static **__set_state** (*array* $data) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Restores the state of a Phalcon\\Config object

final protected *Config merged config* **_merge** (*Config* $config, [*mixed* $instance]) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public static **setPathDelimiter** ([*mixed* $delimiter]) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Sets the default path delimiter

public static **getPathDelimiter** () inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Gets the default path delimiter

final protected *Config merged config* **_merge** (*Config* $config, [*mixed* $instance]) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Helper method for merge configs (forwarding nested config instance)
45 changes: 34 additions & 11 deletions ar/api/Phalcon_Config_Adapter_Json.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Class **Phalcon\\Config\\Adapter\\Json**

*extends* class [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
*extends* class [Phalcon\Config](/en/3.2/api/Phalcon_Config)

*implements* [Countable](http://php.net/manual/en/class.countable.php), [ArrayAccess](http://php.net/manual/en/class.arrayaccess.php)

Expand Down Expand Up @@ -29,13 +29,17 @@ echo $config->models->metadata;

```

## Constants

*string* **DEFAULT_PATH_DELIMITER**

## Methods

public **__construct** (*mixed* $filePath)

Phalcon\\Config\\Adapter\\Json constructor

public **offsetExists** (*mixed* $index) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **offsetExists** (*mixed* $index) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Allows to check whether an attribute is defined using the array-syntax

Expand All @@ -48,7 +52,18 @@ var_dump(

```

public **get** (*mixed* $index, [*mixed* $defaultValue]) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **path** (*mixed* $path, [*mixed* $defaultValue], [*mixed* $delimiter]) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Returns a value from current config using a dot separated path.

```php
<?php

echo $config->path("unknown.path", "default", ".");

```

public **get** (*mixed* $index, [*mixed* $defaultValue]) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Gets an attribute from the configuration, if the attribute isn't defined returns null If the value is exactly null or is not defined the default value will be used instead

Expand All @@ -59,7 +74,7 @@ echo $config->get("controllersDir", "../app/controllers/");

```

public **offsetGet** (*mixed* $index) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **offsetGet** (*mixed* $index) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Gets an attribute using the array-syntax

Expand All @@ -72,7 +87,7 @@ print_r(

```

public **offsetSet** (*mixed* $index, *mixed* $value) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **offsetSet** (*mixed* $index, *mixed* $value) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Sets an attribute using the array-syntax

Expand All @@ -85,7 +100,7 @@ $config["database"] = [

```

public **offsetUnset** (*mixed* $index) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **offsetUnset** (*mixed* $index) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Unsets an attribute using the array-syntax

Expand All @@ -96,7 +111,7 @@ unset($config["database"]);

```

public **merge** ([Phalcon\Config](/en/3.1.2/api/Phalcon_Config) $config) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **merge** ([Phalcon\Config](/en/3.2/api/Phalcon_Config) $config) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Merges a configuration into the current one

Expand All @@ -115,7 +130,7 @@ $globalConfig->merge($appConfig);

```

public **toArray** () inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **toArray** () inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Converts recursively the object to an array

Expand All @@ -128,7 +143,7 @@ print_r(

```

public **count** () inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public **count** () inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Returns the count of properties set in the config

Expand All @@ -148,10 +163,18 @@ print $config->count();

```

public static **__set_state** (*array* $data) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public static **__set_state** (*array* $data) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Restores the state of a Phalcon\\Config object

final protected *Config merged config* **_merge** (*Config* $config, [*mixed* $instance]) inherited from [Phalcon\Config](/en/3.1.2/api/Phalcon_Config)
public static **setPathDelimiter** ([*mixed* $delimiter]) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Sets the default path delimiter

public static **getPathDelimiter** () inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Gets the default path delimiter

final protected *Config merged config* **_merge** (*Config* $config, [*mixed* $instance]) inherited from [Phalcon\Config](/en/3.2/api/Phalcon_Config)

Helper method for merge configs (forwarding nested config instance)
Loading

0 comments on commit cd52be3

Please sign in to comment.