Skip to content

Commit

Permalink
docs: fix docblocks
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed Aug 7, 2018
1 parent f1606af commit 3e1688a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 0 additions & 6 deletions inc/field.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ public function prepareQuestionInputForTarget($input) {
return Toolbox::addslashes_deep($input);
}

/**
* Prepares a default value or set of values for question edition
*
* @param string $input
* @return string
*/
public function prepareQuestionValuesForEdit($input) {
return $input;
}
Expand Down
9 changes: 8 additions & 1 deletion inc/fieldinterface.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,12 @@ public static function getPrefs();
public static function getJSFields();
public function prepareQuestionInputForSave($input);
public function prepareQuestionInputForTarget($input);
public function prepareQuestionValuesForEdit($input);

/**
* Prepares a default value or set of values for question edition
*
* @param string $input
* @return string
*/
public function prepareQuestionValuesForEdit($input);
}
5 changes: 3 additions & 2 deletions inc/fields.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ public static function updateVisibility($currentValues) {
}

/**
* checks if a field type exists
* gets the classname for a field given its type
*
* @param string $type type of field to test for existence
* @return boolean
* @return string
*/
public static function getFieldClassname($type) {
return 'PluginFormcreator' . ucfirst($type) . 'Field';
Expand All @@ -355,6 +355,7 @@ public static function fieldTypeExists($type) {
* @param string $type type of field to get
* @param PluginFormcreatorQuestion $question question representing the field
* @param array $data additional data
* @return null|PluginFormcreatorFieldInterface
*/
public static function getFieldInstance($type, PluginFormcreatorQuestion $question, $data = []) {
$className = self::getFieldClassname($type);
Expand Down

0 comments on commit 3e1688a

Please sign in to comment.