diff --git a/src/bb-library/Api/Abstract.php b/src/bb-library/Api/Abstract.php index 94045b821..8373d925d 100644 --- a/src/bb-library/Api/Abstract.php +++ b/src/bb-library/Api/Abstract.php @@ -64,7 +64,7 @@ class Api_Abstract implements InjectionAwareInterface } /** - * @return null + * @return Box_Mod */ public function getMod() { @@ -83,7 +83,7 @@ class Api_Abstract implements InjectionAwareInterface } /** - * @return null + * @return Model_Admin */ public function getIdentity() { @@ -115,7 +115,7 @@ class Api_Abstract implements InjectionAwareInterface } /** - * @return null + * @return string */ public function getIp() { diff --git a/src/bb-library/Box/App.php b/src/bb-library/Box/App.php index f97db7281..d1fa9fd2d 100644 --- a/src/bb-library/Box/App.php +++ b/src/bb-library/Box/App.php @@ -72,10 +72,20 @@ class Box_App { return $this->render('404', array('exception'=>$e)); } + /** + * @param string $url + * @param string $methodName + * @param string $class + */ public function get($url, $methodName, $conditions = array(), $class = null) { $this->event('get', $url, $methodName, $conditions, $class); } + /** + * @param string $url + * @param string $methodName + * @param string $class + */ public function post($url, $methodName, $conditions = array(), $class = null) { $this->event('post', $url, $methodName, $conditions, $class); } @@ -129,6 +139,9 @@ class Box_App { return $this->processRequest(); } + /** + * @param string $path + */ public function redirect($path) { $location = $this->di['url']->link($path); @@ -136,6 +149,9 @@ class Box_App { exit; } + /** + * @param string $fileName + */ public function render($fileName, $variableArray = array()) { print 'Rendering '.$fileName; @@ -207,6 +223,9 @@ class Box_App { return $response; } + /** + * @param string $httpMethod + */ protected function event($httpMethod, $url, $methodName, $conditions=array(), $classname = null) { if (method_exists($this, $methodName)) { array_push($this->mappings, array($httpMethod, $url, $methodName, $conditions)); diff --git a/src/bb-library/Box/AppClient.php b/src/bb-library/Box/AppClient.php index 0e0211b1b..201638b2e 100644 --- a/src/bb-library/Box/AppClient.php +++ b/src/bb-library/Box/AppClient.php @@ -62,6 +62,9 @@ class Box_AppClient extends Box_App throw new \Box_Exception('Page :url not found', array(':url'=>$page), 404); } + /** + * @param string $fileName + */ public function render($fileName, $variableArray = array(), $ext = 'phtml') { try { diff --git a/src/bb-library/Box/Curl.php b/src/bb-library/Box/Curl.php index 79216bc69..3544d41eb 100644 --- a/src/bb-library/Box/Curl.php +++ b/src/bb-library/Box/Curl.php @@ -53,6 +53,9 @@ class Box_Curl { return $this->di; } + /** + * @param string $url + */ public function __construct($url, $timeOut = 30, $followlocation = true, $maxRedirecs = 4, $binaryTransfer = false, $includeHeader = false, $noBody = false) { if (!extension_loaded('curl')) { throw new \Box_Exception('CURL extension is not enabled'); diff --git a/src/bb-library/Box/Database.php b/src/bb-library/Box/Database.php index b0748e720..d081c21e5 100644 --- a/src/bb-library/Box/Database.php +++ b/src/bb-library/Box/Database.php @@ -95,6 +95,10 @@ class Box_Database implements InjectionAwareInterface return $beans; } + /** + * @param string $modelName + * @param integer $id + */ public function load($modelName,$id) { $type = $this->_getTypeFromModelName($modelName); diff --git a/src/bb-library/Box/EventDispatcher.php b/src/bb-library/Box/EventDispatcher.php index d3dba7dba..dfad6f4e7 100644 --- a/src/bb-library/Box/EventDispatcher.php +++ b/src/bb-library/Box/EventDispatcher.php @@ -37,7 +37,7 @@ class Box_EventDispatcher * @param string $name An event name * @param mixed $listener A PHP callable * - * @return mixed false if listener does not exist, null otherwise + * @return false|null false if listener does not exist, null otherwise */ public function disconnect($name, $listener) { @@ -60,7 +60,7 @@ class Box_EventDispatcher * * @param string $name An event name * - * @return mixed false if listener does not exist, null otherwise + * @return false|null false if listener does not exist, null otherwise */ public function disconnectAll($name) { diff --git a/src/bb-library/Box/EventManager.php b/src/bb-library/Box/EventManager.php index 942198d25..db59ef58d 100644 --- a/src/bb-library/Box/EventManager.php +++ b/src/bb-library/Box/EventManager.php @@ -56,6 +56,10 @@ class Box_EventManager implements \Box\InjectionAwareInterface } + /** + * @param Box_EventDispatcher $disp + * @param string $event + */ private function _connectDatabaseHooks(&$disp, $event) { $sql="SELECT id, rel_id, meta_value diff --git a/src/bb-library/Box/Exception.php b/src/bb-library/Box/Exception.php index 85422606d..2bf04874a 100644 --- a/src/bb-library/Box/Exception.php +++ b/src/bb-library/Box/Exception.php @@ -17,7 +17,7 @@ class Box_Exception extends Exception * * @param string error message * @param array translation variables - * @return void + * @return Exception|null */ public function __construct($message, array $variables = NULL, $code = 0) { diff --git a/src/bb-library/Box/Extension.php b/src/bb-library/Box/Extension.php index 219923c9c..fa1afcfea 100644 --- a/src/bb-library/Box/Extension.php +++ b/src/bb-library/Box/Extension.php @@ -74,6 +74,9 @@ return $this->_request('guest/extension/search', $params); } + /** + * @param string $call + */ private function _request($call, array $params) { $params['bb_version'] = Box_Version::VERSION; diff --git a/src/bb-library/Box/Ftp.php b/src/bb-library/Box/Ftp.php index 9e0872ede..e5a2b0df0 100644 --- a/src/bb-library/Box/Ftp.php +++ b/src/bb-library/Box/Ftp.php @@ -122,6 +122,9 @@ class Box_Ftp return explode("\n", $this->get_contents($file)); } + /** + * @param string $contents + */ public function put_contents($file, $contents, $type = '' ) { if( empty($type) ) @@ -185,6 +188,9 @@ class Box_Ftp return @ftp_chdir($this->link, $dir); } + /** + * @param boolean $group + */ private function chgrp($file, $group, $recursive = false ) { return false; @@ -211,6 +217,9 @@ class Box_Ftp return true; } + /** + * @param boolean $owner + */ private function chown($file, $owner, $recursive = false ) { return false; @@ -274,6 +283,10 @@ class Box_Ftp return $res; } + /** + * @param string $source + * @param string $destination + */ public function copy($source, $destination, $overwrite = false ) { if( ! $overwrite && $this->exists($destination) ) @@ -358,6 +371,9 @@ class Box_Ftp return false; } + /** + * @param string $path + */ public function mkdir($path, $chmod = false, $chown = false, $chgrp = false) { if( !ftp_mkdir($this->link, $path) ) diff --git a/src/bb-library/Box/InjectionAwareInterface.php b/src/bb-library/Box/InjectionAwareInterface.php index a1e70e4d0..d0b7ce9cc 100644 --- a/src/bb-library/Box/InjectionAwareInterface.php +++ b/src/bb-library/Box/InjectionAwareInterface.php @@ -16,6 +16,7 @@ interface InjectionAwareInterface { /** * @param \Box_Di $di + * @return void */ public function setDi($di); diff --git a/src/bb-library/Box/License.php b/src/bb-library/Box/License.php index fea289404..ac33c409a 100644 --- a/src/bb-library/Box/License.php +++ b/src/bb-library/Box/License.php @@ -25,6 +25,9 @@ class Box_License implements \Box\InjectionAwareInterface return $this->di; } + /** + * @return string + */ public function getKey() { $license = $this->di['config']['license']; diff --git a/src/bb-library/Box/Log.php b/src/bb-library/Box/Log.php index 685d8321e..fa1b6b36e 100644 --- a/src/bb-library/Box/Log.php +++ b/src/bb-library/Box/Log.php @@ -133,6 +133,9 @@ class Box_Log ); } + /** + * @param Box_LogDb $writer + */ public function addWriter($writer) { $this->_writers[] = $writer; diff --git a/src/bb-library/Box/LogDb.php b/src/bb-library/Box/LogDb.php index ccc89db2c..6d9e93e6e 100644 --- a/src/bb-library/Box/LogDb.php +++ b/src/bb-library/Box/LogDb.php @@ -23,8 +23,7 @@ class Box_LogDb /** * Class constructor * - * @param object $service - module service class object - * @param array $columnMap + * @param string $service - module service class object */ public function __construct($service) { diff --git a/src/bb-library/Box/LogStream.php b/src/bb-library/Box/LogStream.php index 368664fbc..5164806bd 100644 --- a/src/bb-library/Box/LogStream.php +++ b/src/bb-library/Box/LogStream.php @@ -15,6 +15,9 @@ class Box_LogStream { private $_stream = NULL; + /** + * @param string $streamOrUrl + */ public function __construct($streamOrUrl, $mode = null) { // Setting the default diff --git a/src/bb-library/Box/Mod.php b/src/bb-library/Box/Mod.php index 250293a92..a51ce31b8 100644 --- a/src/bb-library/Box/Mod.php +++ b/src/bb-library/Box/Mod.php @@ -51,6 +51,9 @@ class Box_Mod 'formbuilder', ); + /** + * @param string $mod + */ public function __construct($mod) { if(!preg_match('#[a-zA-Z]#', $mod)) { diff --git a/src/bb-library/Box/Password.php b/src/bb-library/Box/Password.php index ab6d8a104..c2113df06 100644 --- a/src/bb-library/Box/Password.php +++ b/src/bb-library/Box/Password.php @@ -35,6 +35,9 @@ class Box_Password { return $this->options; } + /** + * @return string + */ public function hashIt($password) { return password_hash($password, $this->algo, $this->options); diff --git a/src/bb-library/Box/Request.php b/src/bb-library/Box/Request.php index cbcf58d48..951a162f4 100644 --- a/src/bb-library/Box/Request.php +++ b/src/bb-library/Box/Request.php @@ -90,6 +90,9 @@ class Box_Request implements \Box\InjectionAwareInterface return $this->_filterValue($value, $filters); } + /** + * @param string $name + */ public function getServer($name) { return isset($this->_server[$name]) ? $this->_server[$name] : null; @@ -119,6 +122,9 @@ class Box_Request implements \Box\InjectionAwareInterface return isset($this->_get[$name]); } + /** + * @param string $name + */ public function hasServer($name) { return isset($this->_server[$name]); @@ -532,6 +538,7 @@ class Box_Request implements \Box\InjectionAwareInterface /** * Process a request header and return an array of values with their qualities + * @param string $q * @return array */ protected function _getQualityHeader($header, $q) diff --git a/src/bb-library/Box/Response.php b/src/bb-library/Box/Response.php index b470b00f8..6b03a3306 100644 --- a/src/bb-library/Box/Response.php +++ b/src/bb-library/Box/Response.php @@ -54,7 +54,7 @@ class Box_Response implements \Box\InjectionAwareInterface } /** - * @param mixed $content_type + * @param mixed $contentType */ public function setContentType($contentType, $charset = null) { @@ -75,7 +75,7 @@ class Box_Response implements \Box\InjectionAwareInterface } /** - * @return mixed + * @return string */ public function getContent() { diff --git a/src/bb-library/Box/Url.php b/src/bb-library/Box/Url.php index 6ccf5207e..1f42d92e4 100644 --- a/src/bb-library/Box/Url.php +++ b/src/bb-library/Box/Url.php @@ -39,6 +39,9 @@ class Box_Url implements Box\InjectionAwareInterface return $this->baseUri . $uri; } + /** + * @param string $uri + */ public function link($uri = null, $params = array()) { $uri = trim($uri, '/'); diff --git a/src/bb-library/Box/UrlHelper.php b/src/bb-library/Box/UrlHelper.php index 260cf67fe..af89d8b53 100644 --- a/src/bb-library/Box/UrlHelper.php +++ b/src/bb-library/Box/UrlHelper.php @@ -18,6 +18,9 @@ class Box_UrlHelper { public $params = array(); public $match = false; + /** + * @param string $requestUri + */ public function __construct($httpMethod, $url, $conditions=array(), $requestUri) { $requestMethod = $_SERVER['REQUEST_METHOD']; diff --git a/src/bb-library/Box/Version.php b/src/bb-library/Box/Version.php index 2d2b21ae6..1d56268cf 100644 --- a/src/bb-library/Box/Version.php +++ b/src/bb-library/Box/Version.php @@ -23,7 +23,7 @@ final class Box_Version * with the current Box_Version::VERSION of BoxBilling. * * @param string $version A version string (e.g. "0.7.1"). - * @return boolean -1 if the $version is older, + * @return integer -1 if the $version is older, * 0 if they are the same, * and +1 if $version is newer. * diff --git a/src/bb-library/Model/ProductDomainTable.php b/src/bb-library/Model/ProductDomainTable.php index 640f9c059..1fe7bed78 100644 --- a/src/bb-library/Model/ProductDomainTable.php +++ b/src/bb-library/Model/ProductDomainTable.php @@ -54,6 +54,9 @@ class Model_ProductDomainTable extends Model_ProductTable return 0; } + /** + * @param string $actionName + */ private function isActionNameSet($item, $actionName) { return isset($item['config']['domain']['action']) && $item['config']['domain']['action'] == $actionName; diff --git a/src/bb-library/Model/ProductTable.php b/src/bb-library/Model/ProductTable.php index 6f9aa3dfa..1510fb443 100644 --- a/src/bb-library/Model/ProductTable.php +++ b/src/bb-library/Model/ProductTable.php @@ -108,7 +108,6 @@ class Model_ProductTable implements \Box\InjectionAwareInterface * Price for one unit * * @param Model_Product $product - * @param Model_Currency $currency * @param array $config * @return float */ @@ -141,7 +140,6 @@ class Model_ProductTable implements \Box\InjectionAwareInterface * Price for one unit * * @param Model_Product $product - * @param Model_Currency $currency * @param array $config * @return float */ diff --git a/src/bb-library/Payment/Adapter/AuthorizeNet.php b/src/bb-library/Payment/Adapter/AuthorizeNet.php index a67e5031b..1ebf8c176 100644 --- a/src/bb-library/Payment/Adapter/AuthorizeNet.php +++ b/src/bb-library/Payment/Adapter/AuthorizeNet.php @@ -184,6 +184,12 @@ class Payment_Adapter_AuthorizeNet extends Payment_AdapterAbstract return ($ipn['x_MD5_Hash'] == $hash); } + /** + * @param double $amount + * @param string $currency + * @param string $fp_sequence + * @param integer $fp_timestamp + */ private function _getFingerprint($amount, $currency, $fp_sequence, $fp_timestamp) { if (function_exists('hash_hmac')) { @@ -198,6 +204,9 @@ class Payment_Adapter_AuthorizeNet extends Payment_AdapterAbstract } } + /** + * @param double $amount + */ private function _getHash($transaction_id, $amount) { $hash = MD5($this->getParam('md5Hash') . $this->getParam('apiLoginId') . $transaction_id . $amount); diff --git a/src/bb-library/Payment/Adapter/PayPalEmail.php b/src/bb-library/Payment/Adapter/PayPalEmail.php index 29f926d5b..7ba1b7946 100644 --- a/src/bb-library/Payment/Adapter/PayPalEmail.php +++ b/src/bb-library/Payment/Adapter/PayPalEmail.php @@ -288,6 +288,9 @@ class Payment_Adapter_PayPalEmail implements \Box\InjectionAwareInterface return number_format($amount, 2, '.', ''); } + /** + * @param string $url + */ private function download($url, $post_vars = false, $phd = array(), $contentType = 'application/x-www-form-urlencoded') { $post_contents = ''; @@ -345,6 +348,9 @@ class Payment_Adapter_PayPalEmail implements \Box\InjectionAwareInterface return $data; } + /** + * @param string $url + */ private function _generateForm($url, $data, $method = 'post') { $form = ''; diff --git a/src/bb-library/Payment/Adapter/Payza.php b/src/bb-library/Payment/Adapter/Payza.php index 1714401d3..eccada4cf 100644 --- a/src/bb-library/Payment/Adapter/Payza.php +++ b/src/bb-library/Payment/Adapter/Payza.php @@ -290,6 +290,9 @@ class Payment_Adapter_Payza extends Payment_AdapterAbstract return $this->_generateForm($url, $data); } + /** + * @param string $url + */ private function _generateForm($url, $data, $method = 'post') { $form = ''; diff --git a/src/bb-library/Payment/Adapter/TwoCheckout.php b/src/bb-library/Payment/Adapter/TwoCheckout.php index 4c3a96d6c..657fd5f8e 100644 --- a/src/bb-library/Payment/Adapter/TwoCheckout.php +++ b/src/bb-library/Payment/Adapter/TwoCheckout.php @@ -106,7 +106,6 @@ class Payment_Adapter_TwoCheckout implements \Box\InjectionAwareInterface * * @param Api_Admin $api_admin * @param int $id - transaction id to process - * @param array $ipn - post, get, server, http_raw_post_data * @param int $gateway_id - payment gateway id on BoxBilling * * @return mixed @@ -395,6 +394,9 @@ class Payment_Adapter_TwoCheckout implements \Box\InjectionAwareInterface return $data; } + /** + * @param string $url + */ private function _generateForm($url, $data, $method = 'post') { $form = ''; diff --git a/src/bb-library/Payment/Adapter/WebMoney.php b/src/bb-library/Payment/Adapter/WebMoney.php index bd99c5459..4938558a8 100644 --- a/src/bb-library/Payment/Adapter/WebMoney.php +++ b/src/bb-library/Payment/Adapter/WebMoney.php @@ -225,7 +225,7 @@ class Payment_Adapter_WebMoney /** * Gets currency code from purse * @param string $purse - * @return string|boolean + * @return false|string */ private function getCurrency($purse) { $firstLetter = substr($purse, 0, 1); @@ -264,6 +264,9 @@ class Payment_Adapter_WebMoney ); } + /** + * @param string $url + */ private function _generateForm($url, $data, $method = 'post') { $form = ''; diff --git a/src/bb-library/Payment/Adapter/WebToPay.php b/src/bb-library/Payment/Adapter/WebToPay.php index 059274f7b..6ae302bde 100644 --- a/src/bb-library/Payment/Adapter/WebToPay.php +++ b/src/bb-library/Payment/Adapter/WebToPay.php @@ -68,7 +68,7 @@ class Payment_Adapter_WebToPay extends Payment_AdapterAbstract * Init single payment call to webservice * Invoice id is passed via notify_url * - * @return mixed + * @return string */ public function singlePayment(Payment_Invoice $invoice) { @@ -150,6 +150,9 @@ class Payment_Adapter_WebToPay extends Payment_AdapterAbstract } } + /** + * @param double $amount + */ public function moneyFormat($amount, $currency = null) { return $amount * 100; @@ -521,7 +524,7 @@ class WebToPay { * https://www.mokejimai.lt/makro_specifikacija.html * * @param array $data Information about current payment request. - * @return array + * @return string */ public static function buildRequest($data) { $specs = self::getRequestSpec(); @@ -544,7 +547,7 @@ class WebToPay { * https://www.mokejimai.lt/makro_specifikacija.html * * @param array $data Information about current payment request. - * @return array + * @return string */ public static function buildRepeatRequest($data) { $specs = self::getRepeatRequestSpec(); @@ -743,7 +746,7 @@ class WebToPay { * Downloads xml data from webtopay.com * * @param int $projectID - * @return string + * @return boolean */ public static function getXML($projectID) { $response = self::getUrlContent(self::XML_URL.$projectID.'/'); @@ -795,7 +798,7 @@ class WebToPay { /** * Parses xml to array, serializes it and writes it to file CACHE_URL * - * @param obj $xml + * @param SimpleXMLElement $xml */ public static function parseXML($xml){ @@ -1025,6 +1028,9 @@ class WebToPay { } + /** + * @param string $prefix + */ public static function getPrefixed($data, $prefix) { if (empty($prefix)) return $data; $ret = array(); @@ -1036,6 +1042,9 @@ class WebToPay { return $ret; } + /** + * @param string $URL + */ private static function getUrlContent($URL){ $url = parse_url($URL); if ('https' == $url['scheme']) { @@ -1170,6 +1179,9 @@ class WebToPay { return $response; } + /** + * @param string $type + */ public static function responseToLog($type, $req) { if ('mikro' == $type) { return self::mikroResponseToLog($req); @@ -1206,6 +1218,10 @@ class WebToPay { return 'MIKRO [answer] '.implode(', ', $ret); } + /** + * @param string $type + * @param string $msg + */ public static function log($type, $msg, $logfile=null) { if (!isset($logfile)) { return false; diff --git a/src/bb-library/Payment/AdapterAbstract.php b/src/bb-library/Payment/AdapterAbstract.php index 1be63d82c..2ab3e2f34 100644 --- a/src/bb-library/Payment/AdapterAbstract.php +++ b/src/bb-library/Payment/AdapterAbstract.php @@ -154,6 +154,7 @@ abstract class Payment_AdapterAbstract /** * Get config parameter + * @param string $param */ public function getParam($param) { @@ -176,7 +177,7 @@ abstract class Payment_AdapterAbstract * Set test mode * * @param none - * @return none + * @return Payment_AdapterAbstract */ public function setTestMode($bool) { @@ -194,6 +195,7 @@ abstract class Payment_AdapterAbstract * Used only by payment gateways who care about notify_url response * * @param string + * @param string $response */ public function setOutput($response) { diff --git a/src/bb-library/Payment/Invoice.php b/src/bb-library/Payment/Invoice.php index 4ed030175..e6ec72317 100644 --- a/src/bb-library/Payment/Invoice.php +++ b/src/bb-library/Payment/Invoice.php @@ -90,6 +90,9 @@ class Payment_Invoice return $this->subscription; } + /** + * @param null|string $title + */ public function setTitle($title) { $this->title = $title; diff --git a/src/bb-library/Payment/Invoice/Buyer.php b/src/bb-library/Payment/Invoice/Buyer.php index 63382b3b9..1a9c811e9 100644 --- a/src/bb-library/Payment/Invoice/Buyer.php +++ b/src/bb-library/Payment/Invoice/Buyer.php @@ -134,6 +134,9 @@ class Payment_Invoice_Buyer return $this->phone; } + /** + * @param string $param + */ public function setPhoneCountryCode($param) { $this->phone_cc = $param; diff --git a/src/bb-library/Payment/Invoice/Subscription.php b/src/bb-library/Payment/Invoice/Subscription.php index 0484f2f69..5ed595c11 100644 --- a/src/bb-library/Payment/Invoice/Subscription.php +++ b/src/bb-library/Payment/Invoice/Subscription.php @@ -37,6 +37,9 @@ class Payment_Invoice_Subscription return $this->id; } + /** + * @param double $price + */ public function setAmount($price) { $this->amount = $price; diff --git a/src/bb-library/Registrar/Adapter/Custom.php b/src/bb-library/Registrar/Adapter/Custom.php index df829b8ae..3727a1498 100644 --- a/src/bb-library/Registrar/Adapter/Custom.php +++ b/src/bb-library/Registrar/Adapter/Custom.php @@ -446,7 +446,7 @@ class Whois { /** * Constructor of class domain - * @param string $str_domainame the full name of the domain + * @param string $str_domainname the full name of the domain * @desc Constructor of class domain */ public function __construct($str_domainname) @@ -580,7 +580,7 @@ class Whois { /** * Returns all tlds which are supported by the class - * @return array $tlds all tlds as array + * @return string $tlds all tlds as array * @desc Returns all tlds which are supported by the class */ public static function getTlds() diff --git a/src/bb-library/Registrar/Adapter/Dottk.php b/src/bb-library/Registrar/Adapter/Dottk.php index ba1d727ba..5d351389d 100644 --- a/src/bb-library/Registrar/Adapter/Dottk.php +++ b/src/bb-library/Registrar/Adapter/Dottk.php @@ -188,6 +188,9 @@ class Registrar_Adapter_Dottk extends Registrar_AdapterAbstract Please see http://www.dot.tk/en/pageH12.html for detailed argument description and examples. */ + /** + * @param string $call + */ private function _rest_call($call, $args = array()) { $base_url = "https://api.domainshare.tk/"; @@ -267,6 +270,9 @@ class Registrar_Adapter_Dottk extends Registrar_AdapterAbstract Required arguments: email,password,domainname */ + /** + * @param string $domainname + */ private function domainshare_availability_check($domainname) { $result = $this->_rest_call("availability_check",array("domainname" => $domainname)); @@ -288,6 +294,10 @@ class Registrar_Adapter_Dottk extends Registrar_AdapterAbstract Required arguments: email,password,domainname,enduseremail + nameservers OR forwardurl */ + /** + * @param string $domainname + * @param integer $monthsofregistration + */ private function domainshare_register($domainname,$enduseremail,$monthsofregistration=null,$nameservers=null,$forwardurl=null) { $result = $this->_rest_call("register",array("domainname" => $domainname, "enduseremail" => $enduseremail, "monthsofregistration" => $monthsofregistration, "nameservers" => $nameservers, "forwardurl" => $forwardurl)); @@ -305,6 +315,10 @@ class Registrar_Adapter_Dottk extends Registrar_AdapterAbstract Required arguments: email,password,domainname */ + /** + * @param string $domainname + * @param integer $monthsofregistration + */ private function domainshare_renew($domainname,$monthsofregistration=null) { $result = $this->_rest_call("renew",array("domainname" => $domainname, "monthsofregistration" => $monthsofregistration)); @@ -387,6 +401,9 @@ class Registrar_Adapter_Dottk extends Registrar_AdapterAbstract Required arguments: email,password,domainname + nameservers OR forwardurl */ + /** + * @param string $domainname + */ private function domainshare_modify($domainname,$nameservers=null,$forwardurl=null) { $result = $this->_rest_call("modify",array("domainname" => $domainname, "nameservers" => $nameservers, "forwardurl" => $forwardurl)); diff --git a/src/bb-library/Registrar/Adapter/Email.php b/src/bb-library/Registrar/Adapter/Email.php index 96d2201a9..04cc177ca 100644 --- a/src/bb-library/Registrar/Adapter/Email.php +++ b/src/bb-library/Registrar/Adapter/Email.php @@ -511,7 +511,7 @@ class Whois2 { /** * Constructor of class domain - * @param string $str_domainame the full name of the domain + * @param string $str_domainname the full name of the domain * @desc Constructor of class domain */ public function __construct($str_domainname) @@ -645,7 +645,7 @@ class Whois2 { /** * Returns all tlds which are supported by the class - * @return array $tlds all tlds as array + * @return string $tlds all tlds as array * @desc Returns all tlds which are supported by the class */ public static function getTlds() diff --git a/src/bb-library/Registrar/Adapter/Internetbs.php b/src/bb-library/Registrar/Adapter/Internetbs.php index 0a966bd9a..d12ec01c8 100644 --- a/src/bb-library/Registrar/Adapter/Internetbs.php +++ b/src/bb-library/Registrar/Adapter/Internetbs.php @@ -323,7 +323,6 @@ class Registrar_Adapter_Internetbs extends Registrar_AdapterAbstract /** * Runs an api command and returns parsed data. * @param string $command - * @param array $postData * @return array */ private function _process($command, $params) @@ -404,7 +403,6 @@ class Registrar_Adapter_Internetbs extends Registrar_AdapterAbstract /** * Creates domain object from received data array. - * @param array $res * @param Registrar_Domain $domain * @return Registrar_Domain */ diff --git a/src/bb-library/Registrar/Adapter/Resellerclub.php b/src/bb-library/Registrar/Adapter/Resellerclub.php index 281048ba2..e2348ba1a 100644 --- a/src/bb-library/Registrar/Adapter/Resellerclub.php +++ b/src/bb-library/Registrar/Adapter/Resellerclub.php @@ -69,7 +69,7 @@ class Registrar_Adapter_Resellerclub extends Registrar_AdapterAbstract /** * Tells what TLDs can be registered via this adapter - * @return array + * @return string[] */ public function getTlds() { @@ -654,7 +654,7 @@ class Registrar_Adapter_Resellerclub extends Registrar_AdapterAbstract * @param string $url * @param array $params * @param string $method - * @return mixed + * @return string * @throws Registrar_Exception */ protected function _makeRequest($url ,$params = array(), $method = 'GET', $type = 'json') diff --git a/src/bb-library/Server/Manager.php b/src/bb-library/Server/Manager.php index 5727089cb..3ce498f2d 100644 --- a/src/bb-library/Server/Manager.php +++ b/src/bb-library/Server/Manager.php @@ -152,6 +152,7 @@ abstract class Server_Manager /** * @param Server_Account + * @param string $new_domain * @return bool * @throws Server_Exception */ diff --git a/src/bb-library/Server/Manager/Directadmin.php b/src/bb-library/Server/Manager/Directadmin.php index 76091982d..300eede56 100644 --- a/src/bb-library/Server/Manager/Directadmin.php +++ b/src/bb-library/Server/Manager/Directadmin.php @@ -363,6 +363,9 @@ class Server_Manager_Directadmin extends Server_Manager return isset($results['list']) ? $results['list'] : array(); } + /** + * @param string $command + */ private function _request($command, $fields = array(), $post = true) { $host = $this->_config['host']; diff --git a/src/bb-library/Server/Manager/Ispconfig3.php b/src/bb-library/Server/Manager/Ispconfig3.php index 15dafb31c..f949b7c65 100644 --- a/src/bb-library/Server/Manager/Ispconfig3.php +++ b/src/bb-library/Server/Manager/Ispconfig3.php @@ -382,6 +382,9 @@ class Server_Manager_Ispconfig3 extends Server_Manager return true; } + /** + * @param integer $type + */ private function createClient(Server_Account &$a, $type) { $client = $a->getClient(); @@ -553,6 +556,9 @@ class Server_Manager_Ispconfig3 extends Server_Manager return $this; } + /** + * @param string $action + */ private function _request($action, $params = array()) { $this->getLog()->debug(sprintf('ISP Config 3 action "%s" called with params: "%s" ', $action, print_r($params,1))); diff --git a/src/bb-library/Server/Manager/Virtualmin.php b/src/bb-library/Server/Manager/Virtualmin.php index 911d0580c..a2ae78d4e 100644 --- a/src/bb-library/Server/Manager/Virtualmin.php +++ b/src/bb-library/Server/Manager/Virtualmin.php @@ -272,7 +272,7 @@ class Server_Manager_Virtualmin extends Server_Manager /** * * Creates reseller - * @param Box_ServerAccount $a + * @param Server_Account $a * @throws Server_Exception * @return boolean */ diff --git a/src/bb-library/Server/Manager/Whm.php b/src/bb-library/Server/Manager/Whm.php index e87e8847a..05a6c31e1 100644 --- a/src/bb-library/Server/Manager/Whm.php +++ b/src/bb-library/Server/Manager/Whm.php @@ -279,7 +279,7 @@ class Server_Manager_Whm extends Server_Manager /** * Check if Package exists - * @param Server_Account $a + * @param Server_Package $package * @return bool */ private function _checkPackageExists(Server_Package $package, $create = false) @@ -396,6 +396,9 @@ class Server_Manager_Whm extends Server_Manager return $return; } + /** + * @param string $action + */ private function _request($action, $params = array()) { $this->getLog()->debug(sprintf('Requesting WHM server action "%s" with params "%s" ', $action, print_r($params, true))); @@ -715,7 +718,7 @@ class xmlapi { * the queries made, the response XML/JSON and other such pertinent information. * Calling this function without any parameters will enable debug mode. * - * @param bool $debug turn on or off debug mode + * @param integer $debug turn on or off debug mode * @see get_debug() */ public function set_debug( $debug = 1 ) { @@ -748,7 +751,7 @@ class xmlapi { * Get the port to connect to * * This will return which port the class is connecting to - * @return int $port + * @return string $port * @see set_port() */ public function get_port() { @@ -874,6 +877,7 @@ class xmlapi { * @see set_hash() * @see get_auth_type() * @param string auth_type the auth type to be set + * @param string $auth_type */ public function set_auth_type( $auth_type ) { if ( $auth_type != 'hash' && $auth_type != 'pass') { @@ -1151,6 +1155,11 @@ class xmlapi { return $response; } + /** + * @param string $url + * @param string $postdata + * @param string $authstr + */ private function curl_query( $url, $postdata, $authstr ) { $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); @@ -1184,6 +1193,11 @@ class xmlapi { return $result; } + /** + * @param string $url + * @param string $postdata + * @param string $authstr + */ private function fopen_query( $url, $postdata, $authstr ) { if ( !(ini_get('allow_url_fopen') ) ) { throw new Exception('fopen_query called on system without allow_url_fopen enabled in php.ini'); @@ -2363,9 +2377,6 @@ class xmlapi { * @param string $nameserver1 The IP of the first nameserver to use * @param string $nameserver2 The IP of the second namesever to use * @param string $nameserver3 The IP of the third nameserver to use - * @param string $nameserver4 The IP of the forth nameserver to use - * @return mixed - * @link http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/SetResolvers XML API Call documentation */ public function setresolvers($nameserver1, $nameserver2 = null, $nameserver3 = null) { $args = array(); @@ -2441,9 +2452,6 @@ class xmlapi { * Service Status * * This function will return the status of all services on the and whether they are running or not - * @param string $service A single service to filter for. - * @return mixed - * @link http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/ServiceStatus XML API Call documentation */ public function servicestatus($args=array()) { diff --git a/src/bb-library/Server/Package.php b/src/bb-library/Server/Package.php index 087f9a535..cd67dfff1 100755 --- a/src/bb-library/Server/Package.php +++ b/src/bb-library/Server/Package.php @@ -43,6 +43,9 @@ class Server_Package return $this; } + /** + * @param string $param + */ public function getCustomValue($param) { return isset($this->custom[$param]) ? $this->custom[$param] : NULL; diff --git a/src/bb-modules/Api/Controller/Client.php b/src/bb-modules/Api/Controller/Client.php index 9cddb1e4f..cfea3a86d 100644 --- a/src/bb-modules/Api/Controller/Client.php +++ b/src/bb-modules/Api/Controller/Client.php @@ -76,6 +76,9 @@ class Client implements InjectionAwareInterface return $this->tryCall($role, $call, $p); } + /** + * @param string $call + */ private function tryCall($role, $call, $p) { try { diff --git a/src/bb-modules/Cart/Service.php b/src/bb-modules/Cart/Service.php index 7fd17dc67..799259a4c 100644 --- a/src/bb-modules/Cart/Service.php +++ b/src/bb-modules/Cart/Service.php @@ -39,6 +39,9 @@ class Service implements InjectionAwareInterface return array($sql, array()); } + /** + * @return \Model_Cart + */ public function getSessionCart() { $sqlBindings = array(':session_id' => $this->di['session']->getId()); @@ -637,8 +640,8 @@ class Service implements InjectionAwareInterface * Function checks if product is related to other products in cart * If relation exists then count discount for this * - * @param Model_Cart $cart - * @param Model_CartProduct $model + * @param \Model_Cart $cart + * @param \Model_CartProduct $model * @return type */ protected function getRelatedItemsDiscount(\Model_Cart $cart, \Model_CartProduct $model) diff --git a/src/bb-modules/Cron/Service.php b/src/bb-modules/Cron/Service.php index 375b66b76..fb317ede5 100644 --- a/src/bb-modules/Cron/Service.php +++ b/src/bb-modules/Cron/Service.php @@ -76,6 +76,9 @@ class Service return true; } + /** + * @param string $method + */ protected function _exec($api, $method, $params = null) { try { @@ -85,6 +88,9 @@ class Service } } + /** + * @return string|null + */ public function getLastExecutionTime() { $service = $this->di['mod_service']('system'); diff --git a/src/bb-modules/Currency/Service.php b/src/bb-modules/Currency/Service.php index 3a75645fa..221b0f240 100644 --- a/src/bb-modules/Currency/Service.php +++ b/src/bb-modules/Currency/Service.php @@ -83,6 +83,9 @@ class Service implements InjectionAwareInterface return $this->getDefault(); } + /** + * @return \Model_Currency + */ public function getByCode($code) { return $this->di['db']->findOne('Currency', 'code = :code', array(':code' => $code)); diff --git a/src/bb-modules/Email/Service.php b/src/bb-modules/Email/Service.php index 1af280203..53b28aaaf 100644 --- a/src/bb-modules/Email/Service.php +++ b/src/bb-modules/Email/Service.php @@ -110,6 +110,9 @@ class Service implements \Box\InjectionAwareInterface return true; } + /** + * @param \Model_EmailTemplate $t + */ public function getVars($t) { $json = $this->di['crypt']->decrypt($t->vars, 'v8JoWZph12DYSY4aq8zpvWdzC'); diff --git a/src/bb-modules/Embed/Controller/Client.php b/src/bb-modules/Embed/Controller/Client.php index 84ec95390..56d3400d1 100644 --- a/src/bb-modules/Embed/Controller/Client.php +++ b/src/bb-modules/Embed/Controller/Client.php @@ -37,7 +37,7 @@ class Client implements \Box\InjectionAwareInterface * Always use your module prefix to avoid conflicts with other modules * in future * - * @param Box_App $app - returned by reference + * @param \Box_App $app - returned by reference */ public function register(\Box_App &$app) { diff --git a/src/bb-modules/Example/Api/Admin.php b/src/bb-modules/Example/Api/Admin.php index acbf56ed6..09d5a582e 100644 --- a/src/bb-modules/Example/Api/Admin.php +++ b/src/bb-modules/Example/Api/Admin.php @@ -23,7 +23,7 @@ class Admin extends \Api_Abstract /** * Return list of example objects * - * @return array + * @return string[] */ public function get_something($data) { diff --git a/src/bb-modules/Example/Controller/Admin.php b/src/bb-modules/Example/Controller/Admin.php index 970c46474..0d90017a9 100644 --- a/src/bb-modules/Example/Controller/Admin.php +++ b/src/bb-modules/Example/Controller/Admin.php @@ -73,7 +73,7 @@ class Admin implements \Box\InjectionAwareInterface * * @example $app->get('/example/test', 'get_test', null, get_class($this)); // calls get_test method on this class * @example $app->get('/example/:id', 'get_index', array('id'=>'[0-9]+'), get_class($this)); - * @param Box_App $app + * @param \Box_App $app */ public function register(\Box_App &$app) { diff --git a/src/bb-modules/Example/Controller/Client.php b/src/bb-modules/Example/Controller/Client.php index 891a0858d..dafc4befb 100644 --- a/src/bb-modules/Example/Controller/Client.php +++ b/src/bb-modules/Example/Controller/Client.php @@ -42,7 +42,7 @@ class Client implements \Box\InjectionAwareInterface * Always use your module prefix to avoid conflicts with other modules * in future * - * @param Box_App $app - returned by reference + * @param \Box_App $app - returned by reference */ public function register(\Box_App &$app) { diff --git a/src/bb-modules/Example/Service.php b/src/bb-modules/Example/Service.php index dde6ff92b..ed2777d39 100644 --- a/src/bb-modules/Example/Service.php +++ b/src/bb-modules/Example/Service.php @@ -128,7 +128,7 @@ class Service * In this example we are going to count how many times client failed * to enter correct login details * - * @param Box_Event $event + * @param \Box_Event $event * @return type */ public function onEventClientLoginFailed(\Box_Event $event) @@ -184,7 +184,7 @@ class Service /** * This event hook is registered in example module client API call - * @param Box_Event $event + * @param \Box_Event $event */ public static function onAfterClientCalledExampleModule(\Box_Event $event) { @@ -204,7 +204,7 @@ class Service /** * Example event hook for public ticket and set event return value - * @param Box_Event $event + * @param \Box_Event $event */ public static function onBeforeGuestPublicTicketOpen(\Box_Event $event) { @@ -217,7 +217,7 @@ class Service /** * Example email sending - * @param Box_Event $event + * @param \Box_Event $event */ public static function onAfterClientOrderCreate(\Box_Event $event) { diff --git a/src/bb-modules/Extension/Service.php b/src/bb-modules/Extension/Service.php index 958d3358e..ff8fa7740 100644 --- a/src/bb-modules/Extension/Service.php +++ b/src/bb-modules/Extension/Service.php @@ -278,6 +278,9 @@ class Service implements InjectionAwareInterface return $nav; } + /** + * @return \Model_Extension + */ public function findExtension($type, $id) { $extension = $this->di['db']->findOne('Extension', 'type = ? and name = ? ', array($type, $id)); diff --git a/src/bb-modules/Filemanager/Service.php b/src/bb-modules/Filemanager/Service.php index f55a702f3..e686e68ca 100644 --- a/src/bb-modules/Filemanager/Service.php +++ b/src/bb-modules/Filemanager/Service.php @@ -26,6 +26,10 @@ class Service implements \Box\InjectionAwareInterface return $this->di; } + /** + * @param string $path + * @param string $content + */ public function saveFile($path, $content = PHP_EOL) { $path = $this->_getPath($path); diff --git a/src/bb-modules/Invoice/Service.php b/src/bb-modules/Invoice/Service.php index b1ed12c30..cc6cc558d 100644 --- a/src/bb-modules/Invoice/Service.php +++ b/src/bb-modules/Invoice/Service.php @@ -1050,6 +1050,11 @@ class Service implements InjectionAwareInterface return true; } + /** + * @param integer $due_days + * + * @return \Model_Invoice + */ public function generateForOrder(\Model_ClientOrder $order, $due_days = null) { //check if we do have invoice prepared already diff --git a/src/bb-modules/Invoice/ServicePayGateway.php b/src/bb-modules/Invoice/ServicePayGateway.php index ddcba5c29..e21e2c7bd 100644 --- a/src/bb-modules/Invoice/ServicePayGateway.php +++ b/src/bb-modules/Invoice/ServicePayGateway.php @@ -310,6 +310,9 @@ class ServicePayGateway implements InjectionAwareInterface return (isset($config['description'])) ? $config['description'] : NULL; } + /** + * @param \Model_Invoice $model + */ private function getCallbackUrl(\Model_PayGateway $pg, $model = null) { $p = array( @@ -321,6 +324,9 @@ class ServicePayGateway implements InjectionAwareInterface return $this->di['config']['url'] . 'bb-ipn.php?'.http_build_query($p); } + /** + * @param \Model_Invoice $model + */ private function getReturnUrl(\Model_PayGateway $pg, $model = null) { if($model instanceof \Model_Invoice) { @@ -330,6 +336,9 @@ class ServicePayGateway implements InjectionAwareInterface } + /** + * @param \Model_Invoice $model + */ private function getCancelUrl(\Model_PayGateway $pg, $model = null) { if($model instanceof \Model_Invoice) { @@ -338,6 +347,9 @@ class ServicePayGateway implements InjectionAwareInterface return $this->di['tools']->url('/invoice?status=cancel'); } + /** + * @param \Model_Invoice $model + */ private function getCallbackRedirect(\Model_PayGateway $pg, $model = null) { $p = array( diff --git a/src/bb-modules/Invoice/ServiceTransaction.php b/src/bb-modules/Invoice/ServiceTransaction.php index bee5c62bc..f8ec368cf 100644 --- a/src/bb-modules/Invoice/ServiceTransaction.php +++ b/src/bb-modules/Invoice/ServiceTransaction.php @@ -347,6 +347,9 @@ class ServiceTransaction implements InjectionAwareInterface ); } + /** + * @param \Model_Transaction $model + */ public function oldProcessLogic($model) { $tx = $this->process($model); diff --git a/src/bb-modules/Order/Service.php b/src/bb-modules/Order/Service.php index 6b739db0b..44c8d1f1e 100644 --- a/src/bb-modules/Order/Service.php +++ b/src/bb-modules/Order/Service.php @@ -280,6 +280,9 @@ class Service implements InjectionAwareInterface return $log; } + /** + * @param string $notes + */ public function saveStatusChange(\Model_ClientOrder $order, $notes = NULL) { $os = $this->di['db']->dispense('ClientOrderStatus'); diff --git a/src/bb-modules/Serviceboxbillinglicense/Service.php b/src/bb-modules/Serviceboxbillinglicense/Service.php index ef2443648..50dda50b5 100644 --- a/src/bb-modules/Serviceboxbillinglicense/Service.php +++ b/src/bb-modules/Serviceboxbillinglicense/Service.php @@ -109,7 +109,7 @@ class Service implements InjectionAwareInterface /** * @param $order - * @return void + * @return boolean */ public function activate($order, $model) { @@ -130,7 +130,7 @@ class Service implements InjectionAwareInterface * Suspend VPS * * @param $order - * @return void + * @return boolean */ public function suspend($order, $model) { @@ -146,7 +146,7 @@ class Service implements InjectionAwareInterface /** * @param $order - * @return void + * @return boolean */ public function unsuspend($order, $model) { @@ -162,7 +162,7 @@ class Service implements InjectionAwareInterface /** * @param $order - * @return void + * @return boolean */ public function delete($order, $model) { diff --git a/src/bb-modules/Servicecentovacast/Service.php b/src/bb-modules/Servicecentovacast/Service.php index f7294f1f3..25b1b7b91 100644 --- a/src/bb-modules/Servicecentovacast/Service.php +++ b/src/bb-modules/Servicecentovacast/Service.php @@ -367,6 +367,9 @@ class Service implements \Box\InjectionAwareInterface return $server['url']; } + /** + * @param string $method + */ private function _apiServerCall($model, $method, $arguments = array(), $admin = false) { $account_username = $model->username; @@ -390,6 +393,9 @@ class Service implements \Box\InjectionAwareInterface return $server->bb_data; } + /** + * @param string $method + */ private function _apiSystemCall($server, $method, $params = array()) { require_once(dirname(__FILE__).'/ccapiclient/ccapiclient.php'); diff --git a/src/bb-modules/Servicecentovacast/ccapiclient/ccapiclient.php b/src/bb-modules/Servicecentovacast/ccapiclient/ccapiclient.php index d4048cd9e..94cf54c2f 100755 --- a/src/bb-modules/Servicecentovacast/ccapiclient/ccapiclient.php +++ b/src/bb-modules/Servicecentovacast/ccapiclient/ccapiclient.php @@ -29,6 +29,9 @@ class CCBaseAPIClient { var $debugconsole = false; var $encoding = 'UTF-8'; + /** + * @param string $payload + */ function build_request_packet($methodname,$payload) { return sprintf( 'encoding.'"?'.'>' . @@ -132,6 +135,9 @@ class CCBaseAPIClient { } } + /** + * @param string $packet + */ function api_request($packet) { $url = $this->ccurl; $apiscript = 'api.php'; @@ -154,6 +160,9 @@ class CCBaseAPIClient { $this->raw_response = $this->http->raw_response; } + /** + * @param string $msg + */ function set_error($msg) { $this->success = false; $this->error = $msg; @@ -223,6 +232,9 @@ class CCBaseAPIClient { return $this->domnode_to_array($doc->documentElement); } + /** + * @param DOMElement $node + */ function domnode_to_array($node) { $output = array(); switch ($node->nodeType) { diff --git a/src/bb-modules/Servicecentovacast/ccapiclient/class_HTTPRetriever.php b/src/bb-modules/Servicecentovacast/ccapiclient/class_HTTPRetriever.php index 5716a34bb..171c2db69 100755 --- a/src/bb-modules/Servicecentovacast/ccapiclient/class_HTTPRetriever.php +++ b/src/bb-modules/Servicecentovacast/ccapiclient/class_HTTPRetriever.php @@ -338,6 +338,9 @@ class HTTPRetriever { return $this->_execute_request($url,$cookies); } + /** + * @param string $arrayname + */ function array_to_query($arrayname,$arraycontents) { $output = ""; foreach ($arraycontents as $key=>$value) { @@ -416,6 +419,10 @@ class HTTPRetriever { } // (internal) store a page in the cache + + /** + * @param string $token + */ function _cache_store($token,$url) { if ($this->caching_intelligent) { @@ -465,6 +472,10 @@ class HTTPRetriever { } // (internal) fetch a page from the cache + + /** + * @param string $token + */ function _cache_fetch($token) { $this->cache_hit = false; $this->progress(HRP_DEBUG,"Checking for cached page value"); @@ -1145,6 +1156,9 @@ class HTTPRetriever { return ($this->error === false); } + /** + * @param integer $level + */ function progress($level,$msg) { if (is_callable($this->progress_callback)) call_user_func($this->progress_callback,$level,$msg); } diff --git a/src/bb-modules/Servicecustom/Service.php b/src/bb-modules/Servicecustom/Service.php index 7169d93af..99041dd18 100644 --- a/src/bb-modules/Servicecustom/Service.php +++ b/src/bb-modules/Servicecustom/Service.php @@ -58,7 +58,7 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order + * @param \Model_ClientOrder $order * @return void */ public function action_create(\Model_ClientOrder $order) @@ -78,8 +78,8 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_activate(\Model_ClientOrder $order) { @@ -95,8 +95,8 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_renew(\Model_ClientOrder $order) { @@ -112,8 +112,8 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_suspend(\Model_ClientOrder $order) { @@ -130,8 +130,8 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_unsuspend(\Model_ClientOrder $order) { @@ -148,8 +148,8 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_cancel(\Model_ClientOrder $order) { @@ -166,8 +166,8 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_uncancel(\Model_ClientOrder $order) { @@ -184,8 +184,8 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_delete(\Model_ClientOrder $order) { diff --git a/src/bb-modules/Servicedomain/Service.php b/src/bb-modules/Servicedomain/Service.php index 67f386242..1a40d2936 100644 --- a/src/bb-modules/Servicedomain/Service.php +++ b/src/bb-modules/Servicedomain/Service.php @@ -254,8 +254,8 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_renew(\Model_ClientOrder $order) { @@ -276,8 +276,8 @@ class Service implements \Box\InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_suspend(\Model_ClientOrder $order) { @@ -287,8 +287,8 @@ class Service implements \Box\InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_unsuspend(\Model_ClientOrder $order) { @@ -296,8 +296,8 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_cancel(\Model_ClientOrder $order) { @@ -314,8 +314,8 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_uncancel(\Model_ClientOrder $order) { @@ -325,7 +325,7 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order + * @param \Model_ClientOrder $order * @return void */ public function action_delete(\Model_ClientOrder $order) @@ -918,6 +918,9 @@ class Service implements \Box\InjectionAwareInterface ); } + /** + * @return \Model_Tld + */ public function tldFindOneByTld($tld) { return $this->di['db']->findOne('Tld', 'tld = :tld ORDER by id ASC', array(':tld' => $tld)); diff --git a/src/bb-modules/Servicedownloadable/Service.php b/src/bb-modules/Servicedownloadable/Service.php index a60683326..2d3094f52 100644 --- a/src/bb-modules/Servicedownloadable/Service.php +++ b/src/bb-modules/Servicedownloadable/Service.php @@ -54,7 +54,7 @@ class Service implements InjectionAwareInterface } /** - * @param Model_ClientOrder $order + * @param \Model_ClientOrder $order * @return \Model_ServiceDownloadable */ public function action_create(\Model_ClientOrder $order) @@ -84,8 +84,8 @@ class Service implements InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_renew(\Model_ClientOrder $order) { @@ -95,8 +95,8 @@ class Service implements InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_suspend(\Model_ClientOrder $order) { @@ -106,8 +106,8 @@ class Service implements InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_unsuspend(\Model_ClientOrder $order) { @@ -117,8 +117,8 @@ class Service implements InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_cancel(\Model_ClientOrder $order) { @@ -128,8 +128,8 @@ class Service implements InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_uncancel(\Model_ClientOrder $order) { @@ -139,7 +139,7 @@ class Service implements InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order + * @param \Model_ClientOrder $order * @return void */ public function action_delete(\Model_ClientOrder $order) diff --git a/src/bb-modules/Servicehosting/Service.php b/src/bb-modules/Servicehosting/Service.php index fb24fcb5b..61dc3bcbf 100644 --- a/src/bb-modules/Servicehosting/Service.php +++ b/src/bb-modules/Servicehosting/Service.php @@ -140,7 +140,7 @@ class Service implements InjectionAwareInterface * * @todo * @param \Model_ClientOrder $order - * @return void + * @return boolean */ public function action_renew(\Model_ClientOrder $order) { @@ -159,7 +159,7 @@ class Service implements InjectionAwareInterface /** * @param \Model_ClientOrder $order - * @return void + * @return boolean */ public function action_suspend(\Model_ClientOrder $order) { @@ -178,7 +178,7 @@ class Service implements InjectionAwareInterface /** * @param \Model_ClientOrder $order - * @return void + * @return boolean */ public function action_unsuspend(\Model_ClientOrder $order) { @@ -197,7 +197,7 @@ class Service implements InjectionAwareInterface /** * @param \Model_ClientOrder $order - * @return void + * @return boolean */ public function action_cancel(\Model_ClientOrder $order) { @@ -216,7 +216,7 @@ class Service implements InjectionAwareInterface /** * @param \Model_ClientOrder $order - * @return void + * @return boolean */ public function action_uncancel(\Model_ClientOrder $order) { @@ -384,7 +384,6 @@ class Service implements InjectionAwareInterface /** * Generate username by domain * - * @param string $domain */ private function _generateUsername() { diff --git a/src/bb-modules/Servicelicense/Plugin/Simple.php b/src/bb-modules/Servicelicense/Plugin/Simple.php index 79254fcdb..76255c1bf 100644 --- a/src/bb-modules/Servicelicense/Plugin/Simple.php +++ b/src/bb-modules/Servicelicense/Plugin/Simple.php @@ -18,8 +18,8 @@ class Simple /** * License generation script * - * @param Model_ServiceLicense $service - * @param Model_ClientOrder $order + * @param \Model_ServiceLicense $service + * @param \Model_ClientOrder $order * @param array $config * @return string */ diff --git a/src/bb-modules/Servicelicense/Server.php b/src/bb-modules/Servicelicense/Server.php index 056830bb9..7708a20fd 100644 --- a/src/bb-modules/Servicelicense/Server.php +++ b/src/bb-modules/Servicelicense/Server.php @@ -63,6 +63,9 @@ class Server implements \Box\InjectionAwareInterface return $this->_result; } + /** + * @param string $key + */ private function getServer($key = null, $default = null) { if (null === $key) { diff --git a/src/bb-modules/Servicelicense/Service.php b/src/bb-modules/Servicelicense/Service.php index d5ab15d4a..f5c78abba 100644 --- a/src/bb-modules/Servicelicense/Service.php +++ b/src/bb-modules/Servicelicense/Service.php @@ -113,7 +113,7 @@ class Service implements InjectionAwareInterface /** * @param \Model_ClientOrder $order - * @return void + * @return boolean */ public function action_activate(\Model_ClientOrder $order) { @@ -144,7 +144,7 @@ class Service implements InjectionAwareInterface * * @todo * @param \Model_ClientOrder $order - * @return void + * @return boolean */ public function action_renew(\Model_ClientOrder $order) { @@ -155,7 +155,7 @@ class Service implements InjectionAwareInterface * * @todo * @param \Model_ClientOrder $order - * @return void + * @return boolean */ public function action_suspend(\Model_ClientOrder $order) { @@ -166,7 +166,7 @@ class Service implements InjectionAwareInterface * * @todo * @param \Model_ClientOrder $order - * @return void + * @return boolean */ public function action_unsuspend(\Model_ClientOrder $order) { @@ -177,7 +177,7 @@ class Service implements InjectionAwareInterface * * @todo * @param \Model_ClientOrder $order - * @return void + * @return boolean */ public function action_cancel(\Model_ClientOrder $order) { @@ -188,7 +188,7 @@ class Service implements InjectionAwareInterface * * @todo * @param \Model_ClientOrder $order - * @return void + * @return boolean */ public function action_uncancel(\Model_ClientOrder $order) { @@ -343,6 +343,9 @@ class Service implements InjectionAwareInterface return $result; } + /** + * @param string $key + */ private function _addValue(\Model_ServiceLicense $model, $key, $value) { $m = "getAllowed".ucfirst($key); diff --git a/src/bb-modules/Servicemembership/Service.php b/src/bb-modules/Servicemembership/Service.php index 6181af3a7..1c2c8c1f8 100644 --- a/src/bb-modules/Servicemembership/Service.php +++ b/src/bb-modules/Servicemembership/Service.php @@ -37,7 +37,7 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order + * @param \Model_ClientOrder $order * @return void */ public function action_create(\Model_ClientOrder $order) @@ -60,8 +60,8 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_activate(\Model_ClientOrder $order) { @@ -71,8 +71,8 @@ class Service implements \Box\InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_renew(\Model_ClientOrder $order) { @@ -82,8 +82,8 @@ class Service implements \Box\InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_suspend(\Model_ClientOrder $order) { @@ -93,8 +93,8 @@ class Service implements \Box\InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_unsuspend(\Model_ClientOrder $order) { @@ -104,8 +104,8 @@ class Service implements \Box\InjectionAwareInterface /** * * @todo - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_cancel(\Model_ClientOrder $order) { @@ -114,8 +114,8 @@ class Service implements \Box\InjectionAwareInterface /** * - * @param Model_ClientOrder $order - * @return void + * @param \Model_ClientOrder $order + * @return boolean */ public function action_uncancel(\Model_ClientOrder $order) { @@ -123,7 +123,7 @@ class Service implements \Box\InjectionAwareInterface } /** - * @param Model_ClientOrder $order + * @param \Model_ClientOrder $order * @return void */ public function action_delete(\Model_ClientOrder $order) diff --git a/src/bb-modules/Servicesolusvm/Service.php b/src/bb-modules/Servicesolusvm/Service.php index 5138d4f22..ba053ad68 100644 --- a/src/bb-modules/Servicesolusvm/Service.php +++ b/src/bb-modules/Servicesolusvm/Service.php @@ -143,6 +143,9 @@ class Service implements InjectionAwareInterface $this->di['db']->exec($sql, $params); } + /** + * @param integer $cluster_id + */ public function getMasterConfig($cluster_id) { $sql=" @@ -335,7 +338,7 @@ class Service implements InjectionAwareInterface * Suspend VPS * * @param $order - * @return void + * @return boolean */ public function suspend($order, $model) { @@ -347,7 +350,7 @@ class Service implements InjectionAwareInterface /** * @param $order - * @return void + * @return boolean */ public function unsuspend($order, $model) { @@ -359,7 +362,7 @@ class Service implements InjectionAwareInterface /** * @param $order - * @return void + * @return boolean */ public function cancel($order, $model) { @@ -369,7 +372,7 @@ class Service implements InjectionAwareInterface /** * * @param $order - * @return void + * @return boolean */ public function uncancel($order, $model) { @@ -378,7 +381,7 @@ class Service implements InjectionAwareInterface /** * @param $order - * @return void + * @return boolean */ public function delete($order, $model) { @@ -692,6 +695,9 @@ class SolusVM { $this->api_key = $c['key']; } + /** + * @param string $action + */ private function callAPI($action, $raw_response = false){ $postfields = array_merge( @@ -1087,6 +1093,9 @@ class SolusVM { return $this->callAPI("vserver-unmountiso"); } + /** + * @param string $pae + */ public function vserver_pae($vserverid, $pae){ $this->_parameters = array( 'vserverid' => $vserverid, @@ -1167,6 +1176,9 @@ class SolusVM { return $a['client']; } + /** + * @param string $type + */ public function listplans($type){ $this->_parameters = array( 'type' => $type diff --git a/src/bb-modules/Serviceyouhosting/Service.php b/src/bb-modules/Serviceyouhosting/Service.php index 16be3d725..fbdea8ccf 100644 --- a/src/bb-modules/Serviceyouhosting/Service.php +++ b/src/bb-modules/Serviceyouhosting/Service.php @@ -130,7 +130,7 @@ class Service * Suspend service * * @param $order - * @return void + * @return boolean */ public function suspend($order) { @@ -152,7 +152,7 @@ class Service /** * @param $order - * @return void + * @return boolean */ public function unsuspend($order) { @@ -165,7 +165,7 @@ class Service /** * @param $order - * @return void + * @return boolean */ public function cancel($order) { @@ -175,7 +175,7 @@ class Service /** * * @param $order - * @return void + * @return boolean */ public function uncancel($order) { @@ -184,7 +184,7 @@ class Service /** * @param $order - * @return void + * @return boolean */ public function delete($order) { diff --git a/src/bb-modules/Serviceyouhosting/Youhosting.php b/src/bb-modules/Serviceyouhosting/Youhosting.php index 07a2eeef2..eefe52e6e 100644 --- a/src/bb-modules/Serviceyouhosting/Youhosting.php +++ b/src/bb-modules/Serviceyouhosting/Youhosting.php @@ -52,16 +52,25 @@ class Youhosting_Api_V1 $this->config = $config; } + /** + * @param string $url + */ protected function _post($url, array $params = array()) { return $this->_request($url, $params, 'POST'); } + /** + * @param string $url + */ protected function _get($url, array $params = array()) { return $this->_request($url, $params, 'GET'); } + /** + * @param string $url + */ protected function _delete($url, array $params = array()) { return $this->_request($url, $params, 'DELETE'); @@ -102,6 +111,11 @@ class Youhosting_Api_V1 return $result['result']; } + /** + * @param string $meth + * @param string $absUrl + * @param string[] $headers + */ private function _curlRequest($meth, $absUrl, $headers, $params) { $curl = curl_init(); @@ -150,6 +164,10 @@ class Youhosting_Api_V1 return array($rbody, $rcode); } + /** + * @param integer $errno + * @param string $message + */ private function _handleCurlError($errno, $message) { $supportEmail = 'support@youhosting.com'; diff --git a/src/bb-modules/Spamchecker/Service.php b/src/bb-modules/Spamchecker/Service.php index 9d5f48576..efe98303e 100644 --- a/src/bb-modules/Spamchecker/Service.php +++ b/src/bb-modules/Spamchecker/Service.php @@ -55,6 +55,9 @@ class Service self::_isSpam($event); } + /** + * @param \Box_Event $event + */ private static function _isBlockedIp($event) { $api = $event->getApiAdmin(); @@ -68,6 +71,9 @@ class Service } } + /** + * @param \Box_Event $event + */ private static function _isCommentSpam($event, $comment) { $api = $event->getApiAdmin(); diff --git a/src/bb-modules/Stats/Service.php b/src/bb-modules/Stats/Service.php index 454c8c063..dc813bc65 100644 --- a/src/bb-modules/Stats/Service.php +++ b/src/bb-modules/Stats/Service.php @@ -392,6 +392,10 @@ class Service implements InjectionAwareInterface return $this->_genFlotArray($results, $time_from, $time_to); } + /** + * @param integer $time_from + * @param integer $time_to + */ private function _genFlotArray($results, $time_from, $time_to) { $data = array(); diff --git a/src/bb-modules/Support/Service.php b/src/bb-modules/Support/Service.php index d29b41970..ba2341584 100644 --- a/src/bb-modules/Support/Service.php +++ b/src/bb-modules/Support/Service.php @@ -232,9 +232,9 @@ class Service implements \Box\InjectionAwareInterface /** * Find ticket for client - * @param Model_Client $c + * @param \Model_Client $c * @param int $id - * @return Model_SupportTicket + * @return \Model_SupportTicket */ public function findOneByClient(\Model_Client $c, $id) { @@ -739,6 +739,9 @@ class Service implements \Box\InjectionAwareInterface return true; } + /** + * @param \Model_Admin $identity + */ public function ticketReply(\Model_SupportTicket $ticket, $identity, $content) { $msg = $this->di['db']->dispense('SupportTicketMessage'); @@ -931,6 +934,9 @@ class Service implements \Box\InjectionAwareInterface return (int)$ticketId; } + /** + * @param \Model_Client $identity + */ public function messageCreateForTicket(\Model_SupportTicket $ticket, $identity, $content) { $msg = $this->di['db']->dispense('SupportTicketMessage'); diff --git a/src/bb-modules/System/Service.php b/src/bb-modules/System/Service.php index a7a0daa63..75f058d72 100644 --- a/src/bb-modules/System/Service.php +++ b/src/bb-modules/System/Service.php @@ -25,6 +25,10 @@ class Service $this->di = $di; } + /** + * @param string $param + * @param boolean $default + */ public function getParamValue($param, $default = NULL) { if(empty($param)) { @@ -81,6 +85,9 @@ class Service return (bool)$results; } + /** + * @param string[] $params + */ private function _getMultipleParams($params) { if (!is_array($params)){ diff --git a/src/bb-modules/Theme/Model/Theme.php b/src/bb-modules/Theme/Model/Theme.php index 7d0eb8cd2..6cb66f679 100644 --- a/src/bb-modules/Theme/Model/Theme.php +++ b/src/bb-modules/Theme/Model/Theme.php @@ -86,6 +86,9 @@ class Theme return $files; } + /** + * @return string + */ public function getSettingsPageHtml() { $spp = $this->getPathConfig() .DIRECTORY_SEPARATOR. 'settings.html'; @@ -170,6 +173,9 @@ class Theme return $this->getPathConfig() . DIRECTORY_SEPARATOR .'settings_data.json'; } + /** + * @param string $text + */ private function strip_tags_content($text, $tags = '', $invert = TRUE) {