Commit Graph
280 Commits
Author SHA1 Message Date
Vaidas Lungis 9dd13d4e56 set data array into di api_request_data DI 2015-03-24 13:24:59 +02:00
Vaidas Lungis 3766df064d refactor Profile/Service::updateClient to decrease npath complexity 2015-03-24 13:19:56 +02:00
Vaidas Lungis 21cfc19c3f fix issues 2015-03-24 13:01:16 +02:00
Vaidas Lungis 718a014b55 refactor Product/Service::createPromo to decrease npath complexity 2015-03-24 12:40:07 +02:00
Vaidas Lungis 0c926e7824 refactor Product/Service::updatePromo to decrease npath complexity 2015-03-24 12:20:01 +02:00
Vaidas Lungis a2166b1906 refactor Api/Controller/Client to decrease npath complexity 2015-03-24 11:44:26 +02:00
Vaidas Lungis 38233bd0e2 fix BoxBilling api authorization 2015-03-24 11:27:12 +02:00
Vaidas Lungis 2808e26310 refactor Order\Service:activateOrder() to decrease npath complexity 2015-03-23 16:33:59 +02:00
Vaidas Lungis caeef66961 refactor Order\Service:updateOrder() to decrease npath complexity 2015-03-23 16:06:29 +02:00
Vaidas Lungis 29bec44f57 refactor Invoice\Service:updateInvoice() to decrease npath complexity 2015-03-23 13:34:10 +02:00
Vaidas Lungis 9ce7cb75af refactor Email\Api\Admin:send() to decrease npath complexity 2015-03-20 16:53:08 +02:00
Vaidas Lungis b1ac6c5684 refactor Servicedomain\Api\Guest:tlds() to decrease npath complexity 2015-03-20 16:33:09 +02:00
Vaidas Lungis 229222ef83 refactor Currency\Api\Guest:format() to decrease npath complexity 2015-03-20 16:16:33 +02:00
Vaidas Lungis 5a094f382a isset is not necessary as query will return array with needed array keys 2015-03-20 15:22:20 +02:00
Vaidas Lungis 3cb5b9a509 refactor News\Api\Admin:update() to decrease npath complexity 2015-03-20 15:19:34 +02:00
Vaidas Lungis a1ad4d5b59 refactor Currency\Api\Admin:create() to decrease npath complexity 2015-03-20 15:06:07 +02:00
Vaidas Lungis 2213b30bd9 refactor Forum\Api\Admin:update() to decrease npath complexity 2015-03-20 14:52:42 +02:00
Vaidas Lungis a21df3bc8d isset is not necessary as query will return array with needed array keys 2015-03-20 14:39:07 +02:00
Vaidas Lungis 9d83d4bc1f refactor Client\Api\Guest:create() to decrease npath complexity 2015-03-20 14:35:35 +02:00
Vaidas Lungis 503d9d286b refactor Client\Api\Client:update() to decrease npath complexity 2015-03-20 12:56:34 +02:00
Vaidas Lungis 5467375430 isset is not necessary as query will return array with needed array keys 2015-03-20 10:42:48 +02:00
Vaidas Lungis aad681b881 fix after runing integration tests.
added $this->di['api_request_data']->setRequest to Api_handler
2015-03-19 16:06:20 +02:00
Vaidas Lungis 167f4edb61 Refactor Client\Admin\Api:update()
replace if statments with $di['api_request_data']
2015-03-19 15:49:25 +02:00
Vaidas Lungis c172a80e3e create Box\Mod\Api\Request class and add it to DI
Similar to Box_Request.
Purpose - use it when need to get param item from api call request.

Instead of
$c1 = isset($data['custom_1']) ? $data['custom_1'] : NULL ;
Use
$ci = $this->di['api_request_data']->get('custom_1' [, $defaultValue]);

This way we can reduce nPath complexity
2015-03-19 15:32:01 +02:00
Vaidas Lungis 84bd79e024 add per_page variable to article_get_list api call
issue #293
2015-03-19 10:35:19 +02:00
Vaidas Lungis a0e905949a code clean up 2015-03-18 17:28:18 +02:00
Vaidas Lungis 6e5919e427 set api in example module 2015-03-18 16:48:11 +02:00
Vaidas Lungis f3c64472c5 hash cron user password 2015-03-18 16:42:40 +02:00
Vaidas Lungis f5fcfd66df refactor $app->getApiAdmin to $this->di['is_admin_logged'] or $this->di['api_admin']
getApiAdmin() is deprecated
2015-03-18 16:34:50 +02:00
Vaidas Lungis 5e119399b4 add Unknown api call exception 2015-03-18 16:02:29 +02:00
Vaidas Lungis 998ffd04c7 refactor $app->getApiClient(); to $api = $this->di['api_client'] or $this->di['is_client_logged'];
getApiClient is deprecated
2015-03-18 14:31:44 +02:00
Vaidas Lungis e4748de1c4 refactor $api = $app->getApiGuest(); to $api = $this->di['api_guest'];
getApiGuest is deprecated
2015-03-18 14:10:29 +02:00
Vaidas Lungis d154b96616 clean up code
Delete unused, commented code, inaccessible code
2015-03-18 11:29:47 +02:00
Vaidas Lungis fd6e34fe04 remove iframe width style if mobile browser detected
detection script from http://detectmobilebrowsers.com/
2015-03-17 11:21:46 +02:00
Vaidas Lungis e7b12103dc fix scrutinizer issues 2015-03-16 17:05:38 +02:00
Vaidas Lungis 81d87b983a fix invalid db find statement
create integration client remove test
2015-03-16 13:35:08 +02:00
Vaidas Lungis 2a2abdd405 fix scrutinizer issues 2015-03-13 16:52:59 +02:00
Vaidas Lungis c9354904db fix scrutinizer issues 2015-03-13 16:30:36 +02:00
Giedrius 40c64fc47b Missing variable adedd 2015-03-13 15:49:40 +02:00
Vaidas Lungis 8f2fc3c7b6 Finish client-balance-gateway 2015-03-13 15:14:05 +02:00
Vaidas Lungis aa055419fe create new payment adapter ClientBalance 2015-03-13 15:03:44 +02:00
Giedrius 03bc81b6da Using logical operators such as and instead of && is generally not recommended. 2015-03-13 12:24:22 +02:00
Vaidas Lungis 2ecde5cd45 create isInvoiceDepositType() 2015-03-12 18:08:03 +02:00
Vaidas Lungis 1f686b4e7a update findAllUnpaid
instead of comparing total sums of client balance and total unpaid invoice amount, compare client balance and invoice item price.

Find all unpaid invoices which can be covered from client balance.
2015-03-12 14:21:05 +02:00
Vaidas Lungis fbd9b82528 add company VAT, number and account fields to invoice pdf 2015-03-12 11:49:15 +02:00
4Giedrius 62b5ca6762 Removing Yahoo sitemap ping as it has been moved to Bing Webmaster Tools 2015-03-10 15:31:53 +02:00
4Giedrius 30f1f801b1 Updated sitemap ping URLs 2015-03-10 15:29:32 +02:00
4Giedrius ca6e084c05 SEO module fixes 2015-03-10 15:26:42 +02:00
4Giedrius dace1af1ba Hook for for domain expiration dates sync fixed 2015-03-10 12:27:30 +02:00
4Giedrius 2d07d9347f Added missing param to getExtensionsList() method 2015-03-10 12:09:46 +02:00