Skip to content

Commit 6f456e4

Browse files
committed
Merge pull request #455 from phalcon/2.0.x
2.0.6
2 parents a538517 + 35d9955 commit 6f456e4

File tree

1,743 files changed

+173044
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,743 files changed

+173044
-74
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
22
.DS_Store
3+
phalcon.phar

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,22 @@ ln -s ~/devtools/phalcon.php /usr/bin/phalcon
6161
chmod ugo+x /usr/bin/phalcon
6262
```
6363

64+
## Build `.phar`
65+
66+
Install composer and box in a common location or in your project:
67+
```bash
68+
curl -s http://getcomposer.org/installer | php
69+
bin/composer install
70+
```
71+
72+
Build phar file `phalcon-devtools`
73+
```bash
74+
bin/box build -v
75+
chmod +xr ./phalcon.phar
76+
# Test it!
77+
php ./phalcon.phar
78+
```
79+
6480
## Installation via PEAR
6581

6682
Phalcon Devtools can be installed using PEAR. Since the current version of Devtools

box.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"directories": "resources",
3+
"files": "webtools.php",
4+
"finder": [
5+
{
6+
"exclude": [
7+
"CONTRIBUTING.md",
8+
"README.md",
9+
"LICENSE",
10+
"phalcon.bat",
11+
"phalcon.sh"
12+
],
13+
"in": "scripts",
14+
"name": [
15+
"*.phtml",
16+
"*.php"
17+
]
18+
}
19+
],
20+
"git-version": "git_tag",
21+
"main": "phalcon.php",
22+
"output": "phalcon.phar",
23+
"stub": true
24+
}

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "phalcon/devtools",
33
"type": "library",
44
"description": "This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.",
5-
"keywords": ["framework", "phalcon", "devtools", "webtools"],
5+
"keywords": ["framework", "phalcon", "devtools", "webtools", "phar"],
66
"homepage": "http://phalconphp.com",
7-
"license": "BSD-3",
7+
"license": "BSD-3-Clause",
88
"authors": [
99
{
1010
"name": "Phalcon Team",
@@ -15,6 +15,9 @@
1515
"php": ">=5.3.9",
1616
"ext-phalcon": "~2.0"
1717
},
18+
"require-dev": {
19+
"box": ">=2.5.2"
20+
},
1821
"autoload": {
1922
"psr-0" : {
2023
"Phalcon" : "scripts/"

ide/2.0.0/Phalcon/db/Column.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ class Column implements \Phalcon\Db\ColumnInterface
4949
*/
5050
const TYPE_BOOLEAN = 8;
5151

52+
/**
53+
* Double abstract data type
54+
*/
55+
const TYPE_DOUBLE = 9;
56+
5257
/**
5358
* Bind Type Null
5459
*/

ide/2.0.0/Phalcon/paginator/AdapterInterface.php

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,38 @@
44

55
interface AdapterInterface
66
{
7-
87
/**
98
* Phalcon\Paginator\AdapterInterface constructor
109
*
11-
* @param array $config
10+
* @param array $config
1211
*/
13-
public function __construct($config);
12+
public function __construct(array $config);
1413

1514
/**
1615
* Set the current page number
1716
*
18-
* @param int $page
17+
* @param int $page
1918
*/
20-
public function setCurrentPage($page);
19+
public function setCurrentPage($page);
2120

2221
/**
2322
* Returns a slice of the resultset to show in the pagination
2423
*
25-
* @return \stdClass
24+
* @return \stdClass
2625
*/
27-
public function getPaginate();
26+
public function getPaginate();
2827

2928
/**
3029
* Set current rows limit
3130
*
32-
* @param int $limit
31+
* @param int $limit
3332
*/
34-
public function setLimit($limit);
33+
public function setLimit($limit);
3534

3635
/**
3736
* Get current rows limit
3837
*
39-
* @return int
38+
* @return int
4039
*/
41-
public function getLimit();
42-
40+
public function getLimit();
4341
}

ide/2.0.2/Phalcon/Acl.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Phalcon {
4+
5+
abstract class Acl {
6+
7+
const ALLOW = 1;
8+
9+
const DENY = 0;
10+
}
11+
}

ide/2.0.2/Phalcon/Acl/Adapter.php

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?php
2+
3+
namespace Phalcon\Acl {
4+
5+
/**
6+
* Phalcon\Acl\Adapter
7+
*
8+
* Adapter for Phalcon\Acl adapters
9+
*/
10+
11+
abstract class Adapter implements \Phalcon\Acl\AdapterInterface, \Phalcon\Events\EventsAwareInterface {
12+
13+
protected $_eventsManager;
14+
15+
protected $_defaultAccess;
16+
17+
protected $_accessGranted;
18+
19+
protected $_activeRole;
20+
21+
protected $_activeResource;
22+
23+
protected $_activeAccess;
24+
25+
/**
26+
* Role which the list is checking if it's allowed to certain resource/access
27+
* @var mixed
28+
*/
29+
public function getActiveRole(){ }
30+
31+
32+
/**
33+
* Resource which the list is checking if some role can access it
34+
* @var mixed
35+
*/
36+
public function getActiveResource(){ }
37+
38+
39+
/**
40+
* Active access which the list is checking if some role can access it
41+
* @var mixed
42+
*/
43+
public function getActiveAccess(){ }
44+
45+
46+
/**
47+
* Sets the events manager
48+
*/
49+
public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager){ }
50+
51+
52+
/**
53+
* Returns the internal event manager
54+
*/
55+
public function getEventsManager(){ }
56+
57+
58+
/**
59+
* Sets the default access level (Phalcon\Acl::ALLOW or \Phalcon\Acl::DENY)
60+
*/
61+
public function setDefaultAction($defaultAccess){ }
62+
63+
64+
/**
65+
* Returns the default ACL access level
66+
*/
67+
public function getDefaultAction(){ }
68+
69+
}
70+
}

0 commit comments

Comments
 (0)