Commit 23de95a4 authored by Carsten  Rose's avatar Carsten Rose

Reformat phpdoc.

parent c39578ad
This diff is collapsed.
......@@ -42,7 +42,7 @@ class BodytextParser {
$bodytext = Support::decryptDoubleCurlyBraces($bodytext);
if (strpos($bodytext, NESTING_TOKEN_OPEN) !== false) {
throw new \qfq\UserFormException("Missing close delimiter: $bodytext", ERROR_MISSING_CLOSE_DELIMITER);
throw new UserFormException("Missing close delimiter: $bodytext", ERROR_MISSING_CLOSE_DELIMITER);
}
return $bodytext;
......@@ -275,7 +275,7 @@ class BodytextParser {
if ($posMatchOpen === false) {
$result = $this->decryptNestingDelimeter($result, $nestingOpen, $nestingClose);
throw new \qfq\UserFormException("Missing open delimiter: $result", ERROR_MISSING_OPEN_DELIMITER);
throw new UserFormException("Missing open delimiter: $result", ERROR_MISSING_OPEN_DELIMITER);
}
$pre = substr($result, 0, $posMatchOpen);
......
......@@ -240,6 +240,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
*
* @return string
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
private function buildButtons() {
......@@ -751,9 +752,9 @@ EOF;
/**
* Builds a fieldset
*
* @param $formElement
* @param array $formElement
* @param $elementHtml
* @return
* @return mixed
*/
public function buildRowFieldset(array $formElement, $elementHtml) {
$html = $elementHtml;
......
......@@ -55,6 +55,7 @@ class Evaluate {
* @param string $startDelimiter
* @param string $endDelimiter
* @throws CodeException
* @throws UserFormException
*/
public function __construct(Store $store, Database $db, $startDelimiter = '{{', $endDelimiter = '}}') {
$this->store = $store;
......@@ -78,7 +79,10 @@ class Evaluate {
* @param array $debugStack
*
* @return array
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public function parseArray($tokenArray, array $skip = array(), &$debugStack = array()) {
$arr = array();
......@@ -139,7 +143,7 @@ class Evaluate {
$posMatchOpen = strrpos(substr($result, 0, $posFirstClose), $this->startDelimiter);
if ($posMatchOpen === false) {
throw new \qfq\UserFormException("Missing open delimiter: $result", ERROR_MISSING_OPEN_DELIMITER);
throw new UserFormException("Missing open delimiter: $result", ERROR_MISSING_OPEN_DELIMITER);
}
$pre = substr($result, 0, $posMatchOpen);
......
......@@ -122,7 +122,9 @@ class QuickFormQuery {
* @param bool $phpUnit
*
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public function __construct(array $t3data = array(), $phpUnit = false) {
......@@ -218,6 +220,7 @@ class QuickFormQuery {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public function process() {
$html = '';
......@@ -276,6 +279,7 @@ class QuickFormQuery {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private function doForm($formMode) {
$data = '';
......@@ -502,7 +506,10 @@ class QuickFormQuery {
*
* @return bool TRUE if F_FORWARD_MODE = 'url..', else FALSE
*
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private function setForwardModePage() {
......@@ -560,6 +567,7 @@ class QuickFormQuery {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private function pasteClipboard($formId, FormAction $formAction) {
......@@ -645,6 +653,7 @@ class QuickFormQuery {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private function loadFormSpecification($mode, $recordId, &$foundInStore = '') {
......@@ -879,7 +888,9 @@ class QuickFormQuery {
*
* @return bool|string Formname (Form.name) or FALSE (if no formname found)
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public function getFormName($mode, &$foundInStore = '') {
$dummy = array();
......@@ -1195,6 +1206,10 @@ class QuickFormQuery {
* Process the SQL Queries from bodytext. Return the output.
*
* @return string
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private function doReport() {
......@@ -1213,6 +1228,7 @@ class QuickFormQuery {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public function saveForm() {
......@@ -1228,6 +1244,7 @@ class QuickFormQuery {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public function updateForm() {
......@@ -1243,6 +1260,7 @@ class QuickFormQuery {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public function delete() {
......
......@@ -289,6 +289,7 @@ class Save {
* @return bool|int false if $values is empty, else affectedrows
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
public function updateRecord($tableName, array $values, $recordId) {
......@@ -549,7 +550,9 @@ class Save {
*
* @return array|mixed|null|string
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private function copyUploadFile(array $formElement, array $statusUpload) {
$pathFileName = '';
......@@ -613,6 +616,7 @@ class Save {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private function splitUpload(array $formElement, $pathFileName) {
......@@ -716,7 +720,9 @@ class Save {
* @param $modeUpload
* @return int
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private function doUploadSlave(array $fe, $modeUpload) {
$sql = '';
......
......@@ -415,7 +415,6 @@ class Database {
* @param string $sql
* @param array $parameterArray
*
* @return string
* @throws CodeException
* @throws UserFormException
*/
......@@ -632,7 +631,9 @@ class Database {
*
* @return array the definition of the column as retrieved by Database::getTableDefinition().
*
* @throws \qfq\DbException
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
private function getFieldDefinitionFromTable($table, $columnName) {
$tableDefinition = $this->getTableDefinition($table);
......@@ -660,6 +661,7 @@ class Database {
* @return array column definition of table as returned by SHOW FIELDS FROM as associative array.
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
public function getTableDefinition($table) {
return $this->sql("SHOW FIELDS FROM `$table`");
......@@ -673,8 +675,9 @@ class Database {
* @param array $stat
*
* @return array|bool
* @throws \qfq\CodeException
* @throws \qfq\DbException
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
public function sqlKeys($sql, array &$keys, array &$stat = array()) {
......@@ -699,6 +702,7 @@ class Database {
* @return bool true if found, else false
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
public function existTable($name) {
$found = false;
......
......@@ -69,6 +69,7 @@ class DatabaseUpdate {
* @return bool|string false if there is no table 'Form' or if there is no comment set in table 'Form'.
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
private function getDatabaseVersion() {
......@@ -95,6 +96,7 @@ class DatabaseUpdate {
*
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
private function setDatabaseVersion($version) {
......@@ -154,6 +156,7 @@ class DatabaseUpdate {
* @param $new
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
private function dbUpdateStatements($old, $new) {
if ($new == '' || $old === false) {
......
......@@ -46,8 +46,6 @@ class AbstractException extends \Exception {
// In a very early stage, it might be possible that Store can't be initialized: take care not to use it.
$store = Store::getInstance();
$t3Vars = $store->getStore(STORE_TYPO3);
} catch (UserFormException $e) {
$store = null;
} catch (CodeException $e) {
$store = null;
}
......
......@@ -55,6 +55,7 @@ class Dirty {
* @param bool $phpUnit
* @param bool $dbIndexData
* @param bool $dbIndexQfq
* @throws CodeException
*/
public function __construct($phpUnit = false, $dbIndexData = false, $dbIndexQfq = false) {
......@@ -92,6 +93,7 @@ class Dirty {
*
* @return array|int
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
public function process() {
......@@ -183,7 +185,6 @@ class Dirty {
*
* @return array DirtyRecord or empty array.
* @throws CodeException
* @throws DbException
*/
private function getRecordDirty($tableName, $recordId) {
......@@ -205,8 +206,6 @@ class Dirty {
* @param string $currentFormDirtyMode
*
* @return array
* @throws CodeException
* @throws DbException
*/
private function conflict(array $recordDirty, $currentFormDirtyMode) {
$status = API_ANSWER_STATUS_CONFLICT;
......
......@@ -72,6 +72,7 @@ class FormAction {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public function elements($recordId, array $feSpecAction, $feTypeList) {
......@@ -218,6 +219,7 @@ class FormAction {
*
* @return bool true if none FE is specified or all specified are non empty.
* @throws CodeException
* @throws UserFormException
*/
private function checkRequiredList(array $fe) {
......@@ -280,7 +282,10 @@ class FormAction {
*
* @param array $fe
*
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private function validate(array $fe) {
......@@ -329,6 +334,7 @@ class FormAction {
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
private function doSlave(array $fe, $recordId) {
......@@ -405,6 +411,7 @@ class FormAction {
* @return bool true if at lease one of the named elements is non empty on STORE_FORM (use SANATIZE_ALLOW_ALL to
* perform the check)
* @throws CodeException
* @throws UserFormException
*/
private function checkFormElements($listOfFormElementNames) {
$arr = explode(',', $listOfFormElementNames);
......@@ -574,6 +581,7 @@ class FormAction {
* @param string $tableName
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
private function translateId(array $translateMap, $translateIdColumn, $tableName) {
......@@ -628,6 +636,7 @@ class FormAction {
* @return int - lastInsertId
* @throws CodeException
* @throws DbException
* @throws UserFormException
*/
function copyRecord(array $row, $destTable) {
$keys = array();
......
......@@ -362,6 +362,7 @@ class Download {
/**
* @param string $urlParam
* @return string
* @throws CodeException
* @throws UserFormException
* @throws UserReportException
*/
......@@ -383,6 +384,7 @@ class Download {
* @throws CodeException
* @throws DownloadException
* @throws UserFormException
* @throws UserReportException
*/
public function process($vars, $outputMode = OUTPUT_MODE_DIRECT) {
......
......@@ -1072,6 +1072,7 @@ EOF;
* @param array $vars
*
* @return string
* @throws CodeException
* @throws UserFormException
* @throws UserReportException
*/
......@@ -1420,6 +1421,7 @@ EOF;
* @param $value
*
* @return array
* @throws UserFormException
* @throws UserReportException
*/
private function buildActionDelete($vars, $value) {
......
......@@ -667,6 +667,7 @@ class Report {
*
* @return string rendered column
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
......
......@@ -108,6 +108,7 @@ class SendMail {
* @param array $mailConfig
* @return string
* @throws CodeException
* @throws DownloadException
* @throws UserFormException
* @throws UserReportException
*/
......
......@@ -57,6 +57,7 @@ class Thumbnail {
* @param string $str
* @param string $modeRender
* @return string
* @throws CodeException
* @throws UserFormException
* @throws UserReportException
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment