Skip to content

Commit

Permalink
Fixes bugs introduced with documentation modifications and does some …
Browse files Browse the repository at this point in the history
…documentation adjustments.
  • Loading branch information
JB Lebrun committed Apr 11, 2018
1 parent dbb6724 commit 1bbfda8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 21 deletions.
2 changes: 1 addition & 1 deletion engine/data/html/help.html.inc
Expand Up @@ -47,7 +47,7 @@
</td>
</tr>
</table>
<?php
<?php
/**
* @endcond Exclude
*/
Expand Down
2 changes: 1 addition & 1 deletion engine/data/html/splash_error.html.inc
Expand Up @@ -2,7 +2,7 @@
/**
* @brief Splash error full HTML5 page
* @details Engine / Generic Layout
* @file engine/data/html/spash_error.html.inc
* @file engine/data/html/splash_error.html.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0
* @date Creation: Jan 2008
Expand Down
7 changes: 3 additions & 4 deletions engine/lib/object/CDBConnection.php.inc
Expand Up @@ -46,8 +46,7 @@ abstract class CDBConnection {
* Class constructor.
* @return void
*/
public function __construct() {
}
public function __construct() {}

/* server related methods */

Expand Down Expand Up @@ -116,7 +115,7 @@ abstract class CDBConnection {
abstract public function create_database($name, $charset='utf8');

/**
* Check if a base exits.
* Check if a base exists.
* @param string $name
* @return boolean
*/
Expand All @@ -136,7 +135,7 @@ abstract class CDBConnection {
abstract public function get_databaseSize();

/**
* Return database summary.
* Return database information summary.
* @return array
*/
abstract public function get_databaseSummary();
Expand Down
2 changes: 1 addition & 1 deletion engine/lib/object/FTPClient.php.inc
Expand Up @@ -2,7 +2,7 @@
/**
* @brief FTP client object library
* @details Engine / Object Library
* @file engine/lib/object/FTPCiient.php.inc
* @file engine/lib/object/FTPClient.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0
* @date Creation: Mar 2018
Expand Down
31 changes: 17 additions & 14 deletions engine/lib/object/HTMLForm.php.inc
Expand Up @@ -83,7 +83,7 @@ final class HTMLForm {
private $object = null;

/**
* @var Module $Parent
* @var Module $parent
* @brief Parent module.
*/
private $parent = null;
Expand All @@ -98,7 +98,7 @@ final class HTMLForm {
* @var integer $inputsLimit
* @brief Form input limit.
*/
private $inputsLimit = ini_get('max_input_vars');
private $inputsLimit;

/**
* @var array $inputsLimitUniques
Expand All @@ -125,6 +125,9 @@ final class HTMLForm {
$this->action = $action;
$this->onSubmit = $onSubmit;
$this->target = $target;

/* set up inputs limit */
$this->inputsLimit = ini_get('max_input_vars');

/* check for method type */
switch ($method) {
Expand Down Expand Up @@ -168,7 +171,7 @@ final class HTMLForm {

/**
* Update parent value.
* @param Module $module
* @param Module $parent
* @return void
*/
public function set_parent($parent=null) {
Expand Down Expand Up @@ -215,13 +218,14 @@ final class HTMLForm {
* Create an hidden value.
* @param string $name the hidden value name
* @param string $value the hidden value content
* @param string $id the hidden value id
* @return void
*/
public function add_hidden($name, $value=null, $id='') {
if ($value == null and isset($this->object) and isset($this->object->vars[$name]))
$value = $this->object->vars[$name];
if ($value !== null)
$this->hiddens[] = new HTMLForm_hidden ($name, $value, $id);
$this->hiddens[] = new HTMLForm_hidden($name, $value, $id);
}

/**
Expand Down Expand Up @@ -537,8 +541,8 @@ final class HTMLForm {

/**
* Display file input form item.
* @param string $name the form item name
* @param string $actual the actual value
* @param string $file the form item name
* @param string $default the default value
* @param array $buttons the button descriptions to add
* @return string
*/
Expand Down Expand Up @@ -981,9 +985,9 @@ final class HTMLForm {
}

/**
* build and return text input
* Build and return text input.
* @param mixed $input
* @param string default
* @param string $default
* @return string
*/
public function display_textInput($input, $default=null) {
Expand Down Expand Up @@ -1065,7 +1069,7 @@ final class HTMLForm {
/**
* Build and return textarea input.
* @param mixed $input
* @param string default
* @param string $default
* @return string
*/
public function display_textareaInput($input, $default=null) {
Expand Down Expand Up @@ -1130,7 +1134,7 @@ final class HTMLForm {
/**
* Build and return password input.
* @param mixed $input
* @param string default
* @param string $default
* @return string
*/
public function display_passwordInput($input, $default=null) {
Expand Down Expand Up @@ -1201,7 +1205,7 @@ final class HTMLForm {
/**
* Build and return checkbox input.
* @param mixed $input
* @param string default
* @param string $default
* @return string
*/
public function display_checkboxInput($input, $default=null) {
Expand Down Expand Up @@ -1283,7 +1287,7 @@ final class HTMLForm {
/**
* Build and return radio input.
* @param mixed $input
* @param string default
* @param string $default
* @return string
*/
public function display_radioInput($input, $default=null) {
Expand Down Expand Up @@ -1360,7 +1364,7 @@ final class HTMLForm {
/**
* Build and return hidden input.
* @param mixed $input
* @param string default
* @param string $default
* @return string
*/
public function display_hiddenInput($input, $default=null) {
Expand Down Expand Up @@ -1464,7 +1468,6 @@ final class HTMLForm {
* @param integer $items
* @param integer $name
* @return boolean result
* @access private
*/
private function check_inputsLimit($items=1, $name=false) {
global $camyks;
Expand Down

0 comments on commit 1bbfda8

Please sign in to comment.