Skip to content

Commit

Permalink
Merge pull request #455 from phalcon/2.0.x
Browse files Browse the repository at this point in the history
2.0.6
  • Loading branch information
sergeyklay committed Jul 27, 2015
2 parents a538517 + 35d9955 commit 6f456e4
Show file tree
Hide file tree
Showing 1,743 changed files with 173,044 additions and 74 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
.DS_Store
phalcon.phar
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@ ln -s ~/devtools/phalcon.php /usr/bin/phalcon
chmod ugo+x /usr/bin/phalcon
```

## Build `.phar`

Install composer and box in a common location or in your project:
```bash
curl -s http://getcomposer.org/installer | php
bin/composer install
```

Build phar file `phalcon-devtools`
```bash
bin/box build -v
chmod +xr ./phalcon.phar
# Test it!
php ./phalcon.phar
```

## Installation via PEAR

Phalcon Devtools can be installed using PEAR. Since the current version of Devtools
Expand Down
24 changes: 24 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"directories": "resources",
"files": "webtools.php",
"finder": [
{
"exclude": [
"CONTRIBUTING.md",
"README.md",
"LICENSE",
"phalcon.bat",
"phalcon.sh"
],
"in": "scripts",
"name": [
"*.phtml",
"*.php"
]
}
],
"git-version": "git_tag",
"main": "phalcon.php",
"output": "phalcon.phar",
"stub": true
}
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "phalcon/devtools",
"type": "library",
"description": "This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.",
"keywords": ["framework", "phalcon", "devtools", "webtools"],
"keywords": ["framework", "phalcon", "devtools", "webtools", "phar"],
"homepage": "http://phalconphp.com",
"license": "BSD-3",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Phalcon Team",
Expand All @@ -15,6 +15,9 @@
"php": ">=5.3.9",
"ext-phalcon": "~2.0"
},
"require-dev": {
"box": ">=2.5.2"
},
"autoload": {
"psr-0" : {
"Phalcon" : "scripts/"
Expand Down
5 changes: 5 additions & 0 deletions ide/2.0.0/Phalcon/db/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ class Column implements \Phalcon\Db\ColumnInterface
*/
const TYPE_BOOLEAN = 8;

/**
* Double abstract data type
*/
const TYPE_DOUBLE = 9;

/**
* Bind Type Null
*/
Expand Down
22 changes: 10 additions & 12 deletions ide/2.0.0/Phalcon/paginator/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,38 @@

interface AdapterInterface
{

/**
* Phalcon\Paginator\AdapterInterface constructor
*
* @param array $config
* @param array $config
*/
public function __construct($config);
public function __construct(array $config);

/**
* Set the current page number
*
* @param int $page
* @param int $page
*/
public function setCurrentPage($page);
public function setCurrentPage($page);

/**
* Returns a slice of the resultset to show in the pagination
*
* @return \stdClass
* @return \stdClass
*/
public function getPaginate();
public function getPaginate();

/**
* Set current rows limit
*
* @param int $limit
* @param int $limit
*/
public function setLimit($limit);
public function setLimit($limit);

/**
* Get current rows limit
*
* @return int
* @return int
*/
public function getLimit();

public function getLimit();
}
11 changes: 11 additions & 0 deletions ide/2.0.2/Phalcon/Acl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Phalcon {

abstract class Acl {

const ALLOW = 1;

const DENY = 0;
}
}
70 changes: 70 additions & 0 deletions ide/2.0.2/Phalcon/Acl/Adapter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?php

namespace Phalcon\Acl {

/**
* Phalcon\Acl\Adapter
*
* Adapter for Phalcon\Acl adapters
*/

abstract class Adapter implements \Phalcon\Acl\AdapterInterface, \Phalcon\Events\EventsAwareInterface {

protected $_eventsManager;

protected $_defaultAccess;

protected $_accessGranted;

protected $_activeRole;

protected $_activeResource;

protected $_activeAccess;

/**
* Role which the list is checking if it's allowed to certain resource/access
* @var mixed
*/
public function getActiveRole(){ }


/**
* Resource which the list is checking if some role can access it
* @var mixed
*/
public function getActiveResource(){ }


/**
* Active access which the list is checking if some role can access it
* @var mixed
*/
public function getActiveAccess(){ }


/**
* Sets the events manager
*/
public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager){ }


/**
* Returns the internal event manager
*/
public function getEventsManager(){ }


/**
* Sets the default access level (Phalcon\Acl::ALLOW or \Phalcon\Acl::DENY)
*/
public function setDefaultAction($defaultAccess){ }


/**
* Returns the default ACL access level
*/
public function getDefaultAction(){ }

}
}
Loading

0 comments on commit 6f456e4

Please sign in to comment.