]> git.andy128k.dev Git - ipf.git/commitdiff
update missing-tools
authorAndrey Kutejko <andy128k@gmail.com>
Mon, 10 Mar 2014 06:10:13 +0000 (08:10 +0200)
committerAndrey Kutejko <andy128k@gmail.com>
Mon, 10 Mar 2014 06:10:13 +0000 (08:10 +0200)
composer.json
composer.lock
ipf/admin/model.php
ipf/admin/modelinline.php
ipf/auth/models/User.php
ipf/form/field.php
ipf/form/field/file.php
ipf/form/model.php
ipf/form/widget/dateinput.php
ipf/form/widget/datetimeinput.php
ipf/http/response.php

index b86abf1e156b2981609d620b490dca6a962adb93..ca6f24246e10f5838cf15c38a6378ee4dc7f6324 100644 (file)
@@ -18,8 +18,8 @@
   "require": {
     "pear/archive_tar": "1.3.*",
     "mustangostang/spyc": "0.5.*",
-    "andy128k/missing-tools": "0.1.*",
-    "andy128k/pegp": "0.*",
+    "andy128k/missing-tools": "0.2.*@dev",
+    "andy128k/pegp": "0.1.*@dev",
     "andy128k/routeexpression": "dev-master",
     "andy128k/ipf-template": "dev-master"
   },
index 3d8aa6b2724f3a69c526f6aad5679a67a80acc44..504f173bfbfd4bdd9d42298e000fe866b4ad28ec 100644 (file)
@@ -3,7 +3,7 @@
         "This file locks the dependencies of your project to a known state",
         "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
     ],
-    "hash": "4ee0ab60c8edc915f080d08ccb504a6f",
+    "hash": "6db86b9f680b207eb96f3a29764ab6ea",
     "packages": [
         {
             "name": "andy128k/ipf-template",
         },
         {
             "name": "andy128k/missing-tools",
-            "version": "0.1",
+            "version": "0.2.x-dev",
             "source": {
                 "type": "git",
                 "url": "git://git.andy128k.net/missing-tools.git",
-                "reference": "f1323eee669cab0010d447dcdfa37f471adbf795"
+                "reference": "d01d26b8e4b83e3779983f3d2f2eaea137067446"
             },
             "require": {
-                "andy128k/pegp": "0.*",
+                "andy128k/pegp": "0.1.*@dev",
                 "php": ">=5.3"
             },
             "require-dev": {
                 "phpunit/phpunit": "3.7.*"
             },
             "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "0.1-dev"
-                }
-            },
             "autoload": {
                 "classmap": [
                     "src/"
                 }
             ],
             "description": "Miscellaneous utilities",
-            "time": "2013-12-17 18:59:27"
+            "time": "2014-02-26 22:23:08"
         },
         {
             "name": "andy128k/pegp",
-            "version": "0.1",
+            "version": "0.1.x-dev",
             "source": {
                 "type": "git",
                 "url": "git://git.andy128k.net/pegp.git",
-                "reference": "1b4afb00bdda8d2814f61473cb6c89163db435d0"
+                "reference": "b015277817ab535ab4634741dd30425bf267082e"
             },
             "require-dev": {
                 "phpunit/phpunit": "3.7.*"
                 }
             ],
             "description": "PEG",
-            "time": "2013-12-17 16:15:27"
+            "time": "2014-02-26 22:19:47"
         },
         {
             "name": "andy128k/routeexpression",
     "packages-dev": [
         {
             "name": "phpunit/php-code-coverage",
-            "version": "1.2.13",
+            "version": "1.2.16",
             "source": {
                 "type": "git",
                 "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
-                "reference": "466e7cd2554b4e264c9e3f31216d25ac0e5f3d94"
+                "reference": "69e55e68481cf708a6db43aff0b504e31402fe27"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/466e7cd2554b4e264c9e3f31216d25ac0e5f3d94",
-                "reference": "466e7cd2554b4e264c9e3f31216d25ac0e5f3d94",
+                "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/69e55e68481cf708a6db43aff0b504e31402fe27",
+                "reference": "69e55e68481cf708a6db43aff0b504e31402fe27",
                 "shasum": ""
             },
             "require": {
                 "php": ">=5.3.3",
                 "phpunit/php-file-iterator": ">=1.3.0@stable",
-                "phpunit/php-text-template": ">=1.1.1@stable",
+                "phpunit/php-text-template": ">=1.2.0@stable",
                 "phpunit/php-token-stream": ">=1.1.3@stable"
             },
             "require-dev": {
                 "testing",
                 "xunit"
             ],
-            "time": "2013-09-10 08:14:32"
+            "time": "2014-02-25 03:34:05"
         },
         {
             "name": "phpunit/php-file-iterator",
         },
         {
             "name": "phpunit/php-text-template",
-            "version": "1.1.4",
+            "version": "1.2.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/sebastianbergmann/php-text-template.git",
-                "reference": "5180896f51c5b3648ac946b05f9ec02be78a0b23"
+                "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5180896f51c5b3648ac946b05f9ec02be78a0b23",
-                "reference": "5180896f51c5b3648ac946b05f9ec02be78a0b23",
+                "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/206dfefc0ffe9cebf65c413e3d0e809c82fbf00a",
+                "reference": "206dfefc0ffe9cebf65c413e3d0e809c82fbf00a",
                 "shasum": ""
             },
             "require": {
             "keywords": [
                 "template"
             ],
-            "time": "2012-10-31 18:15:28"
+            "time": "2014-01-30 17:20:04"
         },
         {
             "name": "phpunit/php-timer",
         },
         {
             "name": "phpunit/php-token-stream",
-            "version": "1.2.1",
+            "version": "1.2.2",
             "source": {
                 "type": "git",
                 "url": "https://github.com/sebastianbergmann/php-token-stream.git",
-                "reference": "5220af2a7929aa35cf663d97c89ad3d50cf5fa3e"
+                "reference": "ad4e1e23ae01b483c16f600ff1bebec184588e32"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/5220af2a7929aa35cf663d97c89ad3d50cf5fa3e",
-                "reference": "5220af2a7929aa35cf663d97c89ad3d50cf5fa3e",
+                "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/ad4e1e23ae01b483c16f600ff1bebec184588e32",
+                "reference": "ad4e1e23ae01b483c16f600ff1bebec184588e32",
                 "shasum": ""
             },
             "require": {
             "keywords": [
                 "tokenizer"
             ],
-            "time": "2013-09-13 04:58:23"
+            "time": "2014-03-03 05:10:30"
         },
         {
             "name": "phpunit/phpunit",
-            "version": "3.7.28",
+            "version": "3.7.32",
             "source": {
                 "type": "git",
                 "url": "https://github.com/sebastianbergmann/phpunit.git",
-                "reference": "3b97c8492bcafbabe6b6fbd2ab35f2f04d932a8d"
+                "reference": "2752cbb9ea5bd84c2811b34b6953f76965ec7a2f"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3b97c8492bcafbabe6b6fbd2ab35f2f04d932a8d",
-                "reference": "3b97c8492bcafbabe6b6fbd2ab35f2f04d932a8d",
+                "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/2752cbb9ea5bd84c2811b34b6953f76965ec7a2f",
+                "reference": "2752cbb9ea5bd84c2811b34b6953f76965ec7a2f",
                 "shasum": ""
             },
             "require": {
                 "symfony/yaml": "~2.0"
             },
             "require-dev": {
-                "pear-pear/pear": "1.9.4"
+                "pear-pear.php.net/pear": "1.9.4"
             },
             "suggest": {
                 "ext-json": "*",
                 "testing",
                 "xunit"
             ],
-            "time": "2013-10-17 07:27:40"
+            "time": "2014-02-25 03:47:29"
         },
         {
             "name": "phpunit/phpunit-mock-objects",
         },
         {
             "name": "symfony/yaml",
-            "version": "v2.4.0",
+            "version": "v2.4.2",
             "target-dir": "Symfony/Component/Yaml",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/Yaml.git",
-                "reference": "1ae235a1b9d3ad3d9f3860ff20acc072df95b7f5"
+                "reference": "bb6ddaf8956139d1b8c360b4b713ed0138e876b3"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/symfony/Yaml/zipball/1ae235a1b9d3ad3d9f3860ff20acc072df95b7f5",
-                "reference": "1ae235a1b9d3ad3d9f3860ff20acc072df95b7f5",
+                "url": "https://api.github.com/repos/symfony/Yaml/zipball/bb6ddaf8956139d1b8c360b4b713ed0138e876b3",
+                "reference": "bb6ddaf8956139d1b8c360b4b713ed0138e876b3",
                 "shasum": ""
             },
             "require": {
             "authors": [
                 {
                     "name": "Fabien Potencier",
-                    "email": "fabien@symfony.com"
+                    "email": "fabien@symfony.com",
+                    "homepage": "http://fabien.potencier.org",
+                    "role": "Lead Developer"
                 },
                 {
                     "name": "Symfony Community",
             ],
             "description": "Symfony Yaml Component",
             "homepage": "http://symfony.com",
-            "time": "2013-11-26 16:40:27"
+            "time": "2014-01-07 13:28:54"
         }
     ],
     "aliases": [
     ],
     "minimum-stability": "stable",
     "stability-flags": {
+        "andy128k/missing-tools": 20,
+        "andy128k/pegp": 20,
         "andy128k/routeexpression": 20,
         "andy128k/ipf-template": 20
     },
index 5eb1459e85c394e7007c8dcba2f203ea19283b57..2df9115b3a7c8647839182b45fea1b035f9aedee 100644 (file)
@@ -91,7 +91,7 @@ class BooleanFilter extends BaseListFilter
 
     public function SetSelect($request)
     {
-        switch (ArrayTools::get($request->GET, 'filter_'.$this->column)) {
+        switch (\PFF\Arr::get($request->GET, 'filter_'.$this->column)) {
             case 'y':
                 $this->choices[1]['selected'] = true;
                 break;
@@ -105,7 +105,7 @@ class BooleanFilter extends BaseListFilter
 
     public function FilterQuery($request, $query)
     {
-        switch (ArrayTools::get($request->GET, 'filter_'.$this->column)) {
+        switch (\PFF\Arr::get($request->GET, 'filter_'.$this->column)) {
             case 'y':
                 $query->addWhere($this->column);
                 break;
@@ -398,7 +398,7 @@ class IPF_Admin_Model
     {
         $ma = new $classAdmin($classModel);
         self::$models[$classModel] = $ma;
-        foreach (ArrayTools::get(self::$handlers, $classModel, array()) as $action) {
+        foreach (\PFF\Arr::get(self::$handlers, $classModel, array()) as $action) {
             call_user_func($action, $ma);
         }
         unset(self::$handlers[$classModel]);
@@ -424,7 +424,7 @@ class IPF_Admin_Model
         if (array_key_exists($classModel, self::$models)) {
             call_user_func($action, self::$models[$classModel]);
         } else {
-            ArrayTools::pushToKey(self::$handlers, $classModel, $action);
+            \PFF\Arr::pushToKey(self::$handlers, $classModel, $action);
         }
     }
 
index b772370cdcd906af517a07d38dd628ba3c36caa1..1e4e090e77a855e8a8278483d000019657e530e4 100644 (file)
@@ -66,7 +66,7 @@ abstract class IPF_Admin_ModelInline
             if (!$form->isValid()) {
                 $empty = true;
                 foreach ($form->data as $k => $v) {
-                    if (is_array($v) && ArrayTools::get($v, 'error') === 4) {
+                    if (is_array($v) && \PFF\Arr::get($v, 'error') === 4) {
                         // empty file
                     } elseif ($k !== $form->prefix.'is_remove' && $v) {
                         $empty = false;
index 5e5ba9349ef305709387f0b84e94c3448b065dc1..461ba318d342234e6611d6bde1504585b8aea52f 100644 (file)
@@ -4,8 +4,8 @@ class IPFAuthAdminUserForm extends IPF_Form_Model
 {
     function initFields($extra=array())
     {
-        ArrayTools::pushToKey($extra, 'exclude', 'UserRole');
-        ArrayTools::pushToKey($extra, 'exclude', 'UserPermission');
+        \PFF\Arr::pushToKey($extra, 'exclude', 'UserRole');
+        \PFF\Arr::pushToKey($extra, 'exclude', 'UserPermission');
         parent::initFields($extra);
 
         $this->fields['email']->label = 'E-mail';
index bd0f10a9c56c6d1e745e4d5472bc24fdaa95382f..422feb4938961699f87b9f91200853f14258e682 100644 (file)
@@ -17,7 +17,7 @@ class IPF_Form_Field
 
     function __construct($params=array())
     {
-        $widget_attrs = ArrayTools::pop($params, 'widget_attrs', array());
+        $widget_attrs = \PFF\Arr::pop($params, 'widget_attrs', array());
 
         $default = array();
         foreach ($params as $key=>$in) {
index e8b5bf0ccab197fb8f8165b9ce85ebcf1d4c0fc1..14c0b2a1d0995d8905c479d8c2dabb24fa20ccca 100644 (file)
@@ -39,15 +39,15 @@ class IPF_Form_Field_File extends IPF_Form_Field
     {
         IPF_Utils::makeDirectories($this->getAbsolutePath(''));
 
-        if (ArrayTools::get($value, 'remove'))
+        if (\PFF\Arr::get($value, 'remove'))
             return $this->removeFile($value['data']);
 
-        $oldname = ArrayTools::get($value, 'name', '');
-        $newname = ArrayTools::get($value, 'rename', '');
+        $oldname = \PFF\Arr::get($value, 'name', '');
+        $newname = \PFF\Arr::get($value, 'rename', '');
         if ($oldname != $newname)
             return $this->renameFile($oldname, $newname);
 
-        switch (ArrayTools::get($value['data'], 'error')) {
+        switch (\PFF\Arr::get($value['data'], 'error')) {
         case UPLOAD_ERR_OK:
             break;
         default:
index 817a2430bac93755c2425f885f4ab71c931ba896..e2fa25803b6dfca5396d0136cc682598b78765d9 100644 (file)
@@ -15,7 +15,7 @@ class IPF_Form_Model extends IPF_Form
         if (isset($extra['user_fields']))
             $this->user_fields = $extra['user_fields'];
 
-        $exclude = ArrayTools::get($extra, 'exclude', array());
+        $exclude = \PFF\Arr::get($extra, 'exclude', array());
         $fields = $this->suggestFields($this->model->getTable(), $this->fields(), $exclude, $this);
         foreach ($fields as $field) {
             list($n, $f) = $field;
index 2a7981446a9ef48b2cddb17ac634c395241a3619..a2ac015e440196877a9aba9d72400c44b18fa872 100644 (file)
@@ -7,7 +7,7 @@ class IPF_Form_Widget_DateInput extends IPF_Form_Widget_Input
 
     public function __construct($attrs=array())
     {
-        $format = ArrayTools::pop($attrs, 'format');
+        $format = \PFF\Arr::pop($attrs, 'format');
         if ($format)
             $this->format = is_string($format) ? IPF_Format::dateFlagsFromString($format) : $format;
 
index 73b8509aaadf5614f1a4de182eaa7808b8a62858..c390cb6ce56476ed20c0bf6839f3fa1adea74e74 100644 (file)
@@ -7,7 +7,7 @@ class IPF_Form_Widget_DatetimeInput extends IPF_Form_Widget_Input
 
     public function __construct($attrs=array())
     {
-        $format = ArrayTools::pop($attrs, 'format');
+        $format = \PFF\Arr::pop($attrs, 'format');
         if ($format)
             $this->format = is_string($format) ? IPF_Format::datetimeFlagsFromString($format) : $format;
 
index 071b5af103c2af985988ca3af9b17dc833d221b5..429a652307f1c09cde1a96551e99bd085b86573e 100644 (file)
@@ -68,7 +68,7 @@ class IPF_HTTP_Response
         if ($this->status_code >= 200
             && $this->status_code != 204
             && $this->status_code != 304
-            && !ArrayTools::get($this->headers, 'Content-Length')) {
+            && !\PFF\Arr::get($this->headers, 'Content-Length')) {
 
             $this->headers['Content-Length'] = strlen($this->content);
         }