Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigorii Duca committed Jan 22, 2017
1 parent 7d753a4 commit b681c17
Show file tree
Hide file tree
Showing 30 changed files with 223 additions and 72 deletions.
4 changes: 4 additions & 0 deletions docs/Accessor/AccessorStaticTrait.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class InMemory
}
```

# Table of contents:

* [Methods](#methods)

# Methods:

* [getAccessor](#getaccessor) - Get storage;
Expand Down
4 changes: 4 additions & 0 deletions docs/Accessor/AccessorTrait.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class Options
}
```

# Table of contents:

* [Methods](#methods)

# Methods:

* [getAccessor](#getaccessor) - Get storage;
Expand Down
12 changes: 9 additions & 3 deletions docs/Accessor/ArrayAccessStaticTrait.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# ArrayAccessStaticTrait Documentation

A trait for **public** usage of the storage in a static class.
`\Greg\Support\Accessor\ArrayAccessStaticTrait` is a trait for **public** usage of the storage in a static class.

Use: [`\Greg\Support\Accessor\AccessorStaticTrait`](AccessorStaticTrait.md), [`\Greg\Support\Accessor\ArrayAccessorStaticTrait`](ArrayAccessorStaticTrait.md).
Uses: [`\Greg\Support\Accessor\AccessorStaticTrait`](AccessorStaticTrait.md),
[`\Greg\Support\Accessor\ArrayAccessorStaticTrait`](ArrayAccessorStaticTrait.md).

_Example:_

Expand All @@ -13,6 +14,11 @@ class Storage
}
```

# Table of contents:

* [Methods](#methods)

# Methods:

See trait uses.
Includes [AccessorStaticTrait](AccessorStaticTrait.md)
and [ArrayAccessorStaticTrait](ArrayAccessorStaticTrait.md) methods.
14 changes: 11 additions & 3 deletions docs/Accessor/ArrayAccessTrait.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# ArrayAccessTrait Documentation

A trait for **public** usage of the storage in a class with [`\ArrayAccess`](http://php.net/manual/en/class.arrayaccess.php) support.
`\Greg\Support\Accessor\ArrayAccessTrait` is a trait for **public** usage of the storage in a class
with [`\ArrayAccess`](http://php.net/manual/en/class.arrayaccess.php) support.

Use: [`\Greg\Support\Accessor\AccessorTrait`](AccessorTrait.md), [`\Greg\Support\Accessor\ArrayAccessorTrait`](ArrayAccessorTrait.md).
Uses: [`\Greg\Support\Accessor\AccessorTrait`](AccessorTrait.md),
[`\Greg\Support\Accessor\ArrayAccessorTrait`](ArrayAccessorTrait.md).

_Example:_

Expand All @@ -13,6 +15,12 @@ class Storage implements \ArrayAccess
}
```

# Table of contents:

* [Methods](#methods)

# Methods:

See trait uses.
Includes [AccessorTrait](AccessorTrait.md),
[ArrayAccessorTrait](ArrayAccessorTrait.md)
and [`\ArrayAccess`](http://php.net/manual/en/class.arrayaccess.php) methods.
4 changes: 4 additions & 0 deletions docs/Accessor/ArrayAccessorStaticTrait.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class Storage
}
```

# Table of contents:

* [Methods](#methods)

# Methods:

* [has](#has) - Determine if a key or an array of keys exists in accessor;
Expand Down
4 changes: 4 additions & 0 deletions docs/Accessor/ArrayAccessorTrait.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class Storage
}
```

# Table of contents:

* [Methods](#methods)

# Methods:

* [has](#has) - Determine if a key or an array of keys exists in accessor;
Expand Down
30 changes: 26 additions & 4 deletions docs/Accessor/ArrayObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,34 @@

`\Greg\Support\Accessor\ArrayObject` is an array as an object.

Implements: [`\ArrayAccess`](http://php.net/manual/en/class.arrayaccess.php),
[`\IteratorAggregate`](http://php.net/manual/en/class.iteratoraggregate.php),
[`\Serializable`](http://php.net/manual/en/class.serializable.php),
[`\Countable`](http://php.net/manual/en/class.countable.php).

Uses: [`\Greg\Support\Accessor\ArrayAccessTrait`](ArrayAccessTrait.md),
[`\Greg\Support\Accessor\IteratorAggregateTrait`](IteratorAggregateTrait.md),
[`\Greg\Support\Accessor\SerializableTrait`](SerializableTrait.md),
[`\Greg\Support\Accessor\CountableTrait`](CountableTrait.md).

# Table of contents:

* [Magic methods](#magic-methods)
* [Methods](#methods)

# Magic methods:

* [__construct](#__construct);

**Methods description is under construction.**

# Methods:

Includes [ArrayAccessTrait](ArrayAccessTrait.md),
[IteratorAggregateTrait](IteratorAggregateTrait.md),
[SerializableTrait](SerializableTrait.md)
and [CountableTrait](CountableTrait.md) methods.

* [toArray](#toarray) - Transform to array;
* [exchange](#exchange) - Exchange array;
* [exchangeRef](#exchangeref) - Exchange array reference;
Expand Down Expand Up @@ -60,8 +86,4 @@
* [keys](#keys) - Get keys of array;
* [values](#values) - Get values of array.

**Magic methods:**

* [__construct](#__construct);

**Methods description is under construction.**
8 changes: 6 additions & 2 deletions docs/Accessor/CountableTrait.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CountableTrait Documentation

A trait for [Countable](http://php.net/manual/en/class.countable.php) interface.
A trait for [`\Countable`](http://php.net/manual/en/class.countable.php) interface.

_Example:_

Expand All @@ -18,6 +18,10 @@ class Storage implements \Countable
}
```

# Table of contents:

* [Methods](#methods)

# Methods:

See [Countable](http://php.net/manual/en/class.countable.php) interface.
Includes [`\Countable`](http://php.net/manual/en/class.countable.php) methods.
8 changes: 6 additions & 2 deletions docs/Accessor/IteratorAggregateTrait.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# IteratorAggregateTrait Documentation

A trait for [IteratorAggregate](http://php.net/manual/en/class.iteratoraggregate.php) interface.
A trait for [`\IteratorAggregate`](http://php.net/manual/en/class.iteratoraggregate.php) interface.

_Example:_

Expand All @@ -18,9 +18,13 @@ class Storage implements \IteratorAggregate
}
```

# Table of contents:

* [Methods](#methods)

# Methods:

See [IteratorAggregate](http://php.net/manual/en/class.iteratoraggregate.php) interface.
Includes [`\IteratorAggregate`](http://php.net/manual/en/class.iteratoraggregate.php) methods.

* [getIteratorClass](#getiteratorclass) - Get iterator class;
* [setIteratorClass](#setiteratorclass) - Set iterator class.
Expand Down
8 changes: 6 additions & 2 deletions docs/Accessor/SerializableTrait.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SerializableTrait Documentation

A trait for [SerializableTrait](http://php.net/manual/en/class.serializable.php) interface.
A trait for [`\Serializable`](http://php.net/manual/en/class.serializable.php) interface.

_Example:_

Expand All @@ -25,6 +25,10 @@ class Storage implements \Serializable
}
```

# Table of contents:

* [Methods](#methods)

# Methods:

See [SerializableTrait](http://php.net/manual/en/class.serializable.php) interface.
Includes [`\Serializable`](http://php.net/manual/en/class.serializable.php) methods.
5 changes: 5 additions & 0 deletions docs/Arr.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

`\Greg\Support\Arr` is working with arrays.

# Table of contents:

* [Constants](#constants)
* [Methods](#methods)

# Constants:

```php
Expand Down
4 changes: 4 additions & 0 deletions docs/Config.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

`\Greg\Support\Config` is working with config files.

# Table of contents:

* [Methods](#methods)

# Methods:

* [dir](#dir) - Get a config from a directory;
Expand Down
6 changes: 6 additions & 0 deletions docs/DateTime.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@

Extends: [`\DateTime`](http://php.net/manual/en/class.datetime.php).

# Table of contents:

* [Methods](#methods)

# Methods:

Includes [`\DateTime`](http://php.net/manual/en/class.datetime.php) methods.

* [yearInterval](#yearinterval) - Get a string interval to current year;
* [transform](#transform) - Transform a time;
* [transformLocale](#transformlocale) - Transform a time, using locale;
Expand Down
4 changes: 4 additions & 0 deletions docs/Dir.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

`\Greg\Support\Dir` is working with directories.

# Table of contents:

* [Methods](#methods)

# Methods:

* [make](#make) - Make a directory;
Expand Down
15 changes: 11 additions & 4 deletions docs/File.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

`\Greg\Support\File` is working with directories.

# Table of contents:

* [Magic methods](#magic-methods)
* [Methods](#methods)

# Magic methods:

* [__construct](#__construct);

**Methods description is under construction.**

# Methods:

* [fileName](#filename) - Get file name;
Expand All @@ -13,8 +24,4 @@
* [mime](#mime) - Get mime of a file;
* [makeDir](#makedir) - Make directory of a file.

**Magic methods:**

* [__construct](#__construct);

**Methods description is under construction.**
16 changes: 12 additions & 4 deletions docs/Http/Request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

Throws: `\Greg\Support\Http\RequestException`.

# Table of contents:

* [Constants](#constants)
* [Magic methods](#magic-methods)
* [Methods](#methods)

# Constants

```php
Expand Down Expand Up @@ -37,6 +43,12 @@ const UPLOAD_ERROR = [
];
```

# Magic methods:

* [__construct](#__construct);

**Methods description is under construction.**

# Methods:

* [validate](#validate) - Validate params;
Expand Down Expand Up @@ -90,8 +102,4 @@ const UPLOAD_ERROR = [
* [fileIndex](#fileindex) - Get a param or an array of params by index from `$_FILES`;
* [fileIndexArray](#fileindexarray) - Get an array param or an array of array params by index from `$_FILES`.

**Magic methods:**

* [__construct](#__construct);

**Methods description is under construction.**
18 changes: 13 additions & 5 deletions docs/Http/Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

Throws: `\Greg\Support\Http\ResponseException`.

# Table of contents:

* [Constants](#constants)
* [Magic methods](#magic-methods)
* [Methods](#methods)

# Constants

```php
Expand Down Expand Up @@ -71,6 +77,13 @@ const CODES = [
];
```

# Magic methods

* [__construct](#__construct);
* [__toString](#__toString);

**Methods description is under construction.**

# Methods:

* [back](#back) - Set redirection back;
Expand Down Expand Up @@ -111,9 +124,4 @@ const CODES = [
* [flush](#flush) - Flush the output buffer;
* [isModifiedSince](#ismodifiedsince) - Determine if the request was modified.

**Magic methods**

* [__construct](#__construct);
* [__toString](#__toString);

**Methods description is under construction.**
10 changes: 6 additions & 4 deletions docs/Image.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@

Extends: [`\Greg\Support\File`](File.md).

# Table of contents:

* [Methods](#methods)

# Methods:

Includes [File](File.md) methods.

* [getType](#gettype) - Get image type;
* [getSize](#getsize) - Get image size;
* [getResource](#getresource) - Get image resource;
Expand All @@ -17,8 +23,4 @@ Extends: [`\Greg\Support\File`](File.md).
* [width](#width) - Get width of an image;
* [height](#height) - Get height of an image.

**Magic methods:**

* [__construct](#__construct);

**Methods description is under construction.**
4 changes: 4 additions & 0 deletions docs/Obj.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

`\Greg\Support\Obj` is working with objects.

# Table of contents:

* [Methods](#methods)

# Methods:

* [call](#call) - Call a callable with arguments;
Expand Down
4 changes: 4 additions & 0 deletions docs/Server.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

`\Greg\Support\Server` is working with server configurations.

# Table of contents:

* [Methods](#methods)

# Methods:

* [scriptName](#scriptname) - Get script name;
Expand Down
Loading

0 comments on commit b681c17

Please sign in to comment.