Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Merge branch '0.11' into l10n_0.11
Browse files Browse the repository at this point in the history
* 0.11:
  URL correction
  Document restructure
  update control structures
  New Crowdin translations (#189)
  • Loading branch information
niden committed Jan 4, 2019
2 parents a5e3c3e + e85e2f7 commit a965644
Show file tree
Hide file tree
Showing 589 changed files with 5,627 additions and 34,999 deletions.
5 changes: 0 additions & 5 deletions el-GR/arrays-menu.md

This file was deleted.

35 changes: 22 additions & 13 deletions el-GR/arrays.md
@@ -1,15 +1,24 @@
* * *

layout: default language: 'el-GR' version: '0.11' menu:

- text: 'Declaring Array Variables' url: '#declaring-array-variables'
- text: 'Creating Arrays' url: '#creating-arrays'
- text: 'Updating arrays' url: '#updating-arrays'
- text: 'Appending elements' url: '#appending-elements'
- text: 'Reading elements from arrays' url: '#reading-elements-from-arrays'

* * *

---
layout: default
language: 'el-GR'
version: '0.11'
menu:
- text:
'Declaring Array Variables'
url: '#declaring-array-variables'
- text:
'Creating Arrays'
url: '#creating-arrays'
- text:
'Updating arrays'
url: '#updating-arrays'
- text:
'Appending elements'
url: '#appending-elements'
- text:
'Reading elements from arrays'
url: '#reading-elements-from-arrays'
---
# Πίνακες

Array manipulation in Zephir provides a way to use PHP [array](http://www.php.net/manual/en/language.types.array.php). An array is an implementation of a [hash table](http://en.wikipedia.org/wiki/Hash_table).
Expand Down Expand Up @@ -128,4 +137,4 @@ let foo = elements["foo"];

```zephir
let foo = elements[0];
```
```
4 changes: 0 additions & 4 deletions el-GR/builtin-methods-menu.md

This file was deleted.

31 changes: 19 additions & 12 deletions el-GR/builtin-methods.md
@@ -1,14 +1,21 @@
* * *

layout: default language: 'el-GR' version: '0.11' menu:

- text: 'String' url: '#string'
- text: 'Array' url: '#array'
- text: 'Char' url: '#char'
- text: 'Integer' url: '#integer'

* * *

---
layout: default
language: 'el-GR'
version: '0.11'
menu:
- text:
'String'
url: '#string'
- text:
'Array'
url: '#array'
- text:
'Char'
url: '#char'
- text:
'Integer'
url: '#integer'
---
# Built-In Methods

As mentioned before, Zephir promotes object-oriented programming. Variables related to static types can also be handled as objects.
Expand Down Expand Up @@ -115,4 +122,4 @@ The following integer built-in methods are available:

| OO | Procedural |
| ------------- | ---------- |
| `i->abs()` | `abs(i)` |
| `i->abs()` | `abs(i)` |
13 changes: 6 additions & 7 deletions el-GR/closures.md
@@ -1,9 +1,8 @@
* * *

layout: default language: 'el-GR' version: '0.11'

* * *

---
layout: default
language: 'el-GR'
version: '0.11'
---
# Closures

You can use closures (a.k.a. anonymous functions) in Zephir; these are PHP compatible and can be returned to the PHP userland:
Expand Down Expand Up @@ -53,4 +52,4 @@ class Functional
return data->map(number => number * number);
}
}
```
```
28 changes: 0 additions & 28 deletions el-GR/config-menu.md

This file was deleted.

90 changes: 65 additions & 25 deletions el-GR/config.md
@@ -1,27 +1,67 @@
* * *

layout: default language: 'el-GR' version: '0.11' menu:

- text: 'api' url: '#api'
- text: 'author' url: '#author'
- text: 'backend' url: '#backend'
- text: 'constants-sources' url: '#constants-sources'
- text: 'description' url: '#description'
- text: 'destructors' url: '#destructors'
- text: 'extension-name' url: '#extension-name'
- text: 'external-dependencies' url: '#external-dependencies'
- text: 'extra' url: '#extra'
- text: 'extra-cflags' url: '#extra-cflags'
- text: 'extra-classes' url: '#extra-classes'
- text: 'extra-libs' url: '#extra-libs'
- text: 'extra-sources' url: '#extra-sources'
- text: 'globals' url: '#globals'
- text: 'info' url: '#info'
- text: 'initializers' url: '#initializers'
- text: 'name' url: '#name'
- text: 'namespace' url: '#namespace'
- text: 'optimizations' url: '#optimizations'
- text: 'optimizer-dirs'
---
layout: default
language: 'el-GR'
version: '0.11'
menu:
- text:
'api'
url: '#api'
- text:
'author'
url: '#author'
- text:
'backend'
url: '#backend'
- text:
'constants-sources'
url: '#constants-sources'
- text:
'description'
url: '#description'
- text:
'destructors'
url: '#destructors'
- text:
'extension-name'
url: '#extension-name'
- text:
'external-dependencies'
url: '#external-dependencies'
- text:
'extra'
url: '#extra'
- text:
'extra-cflags'
url: '#extra-cflags'
- text:
'extra-classes'
url: '#extra-classes'
- text:
'extra-libs'
url: '#extra-libs'
- text:
'extra-sources'
url: '#extra-sources'
- text:
'globals'
url: '#globals'
- text:
'info'
url: '#info'
- text:
'initializers'
url: '#initializers'
- text:
'name'
url: '#name'
- text:
'namespace'
url: '#namespace'
- text:
'optimizations'
url: '#optimizations'
- text:
'optimizer-dirs'
url: '#optimizer-dirs'
- text: 'package-dependencies' url: '#package-dependencies'
- text: 'prototype-dir' url: '#prototype-dir'
Expand Down Expand Up @@ -524,4 +564,4 @@ Compiler warnings which should be enabled or disabled in the current project:
"nonexistent-class": true
}
}
```
```
11 changes: 0 additions & 11 deletions el-GR/control-structures-menu.md

This file was deleted.

61 changes: 42 additions & 19 deletions el-GR/control-structures.md
@@ -1,21 +1,44 @@
* * *

layout: default language: 'el-GR' version: '0.11' menu:

- text: 'Conditionals' url: '#conditionals' sub:
- text: 'If Statement' url: '#conditionals-if'
- text: 'Switch Statement' url: '#conditionals-switch'
- text: 'Loops' url: '#loops' sub:
- text: 'While Statement' url: '#loops-while'
- text: 'Loop Statement' url: '#loops-loop'
- text: 'For Statement' url: '#loops-for'
- text: 'Break Statement' url: '#loops-break'
- text: 'Continue Statement' url: '#loops-continue'
- text: 'Require' url: '#require'
- text: 'Let' url: '#let'

* * *

---
layout: default
language: 'el-GR'
version: '0.11'
menu:
- text:
'Conditionals'
url: '#conditionals'
sub:
- text:
'If Statement'
url: '#conditionals-if'
- text:
'Switch Statement'
url: '#conditionals-switch'
- text:
'Loops'
url: '#loops'
sub:
- text:
'While Statement'
url: '#loops-while'
- text:
'Loop Statement'
url: '#loops-loop'
- text:
'For Statement'
url: '#loops-for'
- text:
'Break Statement'
url: '#loops-break'
- text:
'Continue Statement'
url: '#loops-continue'
- text:
'Require'
url: '#require'
- text:
'Let'
url: '#let'
---
# Control Structures

Zephir implements a simplified set of control structures present in similar languages like C, PHP etc.
Expand Down Expand Up @@ -258,4 +281,4 @@ Multiple mutations can be performed in a single `let` operation:

```zephir
let price = 1.00, realPrice = price, status = false;
```
```
13 changes: 6 additions & 7 deletions el-GR/exceptions.md
@@ -1,9 +1,8 @@
* * *

layout: default language: 'el-GR' version: '0.11'

* * *

---
layout: default
language: 'el-GR'
version: '0.11'
---
# Exceptions

Zephir implements exceptions at a very low level, providing similar behavior and functionality to PHP.
Expand Down Expand Up @@ -83,4 +82,4 @@ Zephir's exceptions provide the same methods to know where the exception happene
#0 /home/scott/test.php(64): Phalcon\Mvc\Model::__callStatic('someMethod', Array)
#1 /home/scott/test.php(64): Robots::someMethod()
#2 {main}
```
```
13 changes: 6 additions & 7 deletions el-GR/functions.md
@@ -1,9 +1,8 @@
* * *

layout: default language: 'el-GR' version: '0.11'

* * *

---
layout: default
language: 'el-GR'
version: '0.11'
---
# Calling Functions

PHP has a rich library of functions that you can use within your extensions. To call a PHP function you simply use it as normal within your Zephir code:
Expand Down Expand Up @@ -96,4 +95,4 @@ class Encoder
return {callback}(text);
}
}
```
```
13 changes: 6 additions & 7 deletions el-GR/globals.md
@@ -1,9 +1,8 @@
* * *

layout: default language: 'el-GR' version: '0.11'

* * *

---
layout: default
language: 'el-GR'
version: '0.11'
---
# Extension Globals

PHP extensions provide a way to define globals within an extension. Reading/writing globals should be faster than any other global mechanisms (like static members). You can use extension globals to set up configuration options that change the behavior of your library.
Expand Down Expand Up @@ -111,4 +110,4 @@ let myOption = "someOption";
// will throw a compiler exception
let someOption = globals_get(myOption);
```
```

0 comments on commit a965644

Please sign in to comment.