Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
5440cdf1
Commit
5440cdf1
authored
Feb 21, 2016
by
Carsten Rose
Browse files
Store, Constants: renamed constant for error code
README.md: short installation instructions.
parent
7e40f599
Changes
3
Show whitespace changes
Inline
Side-by-side
README.md
View file @
5440cdf1
===============
Doc: https://wikiit.math.uzh.ch/it/projekt/qfq/qfq-jqwidgets
\ No newline at end of file
QFQ: Typo3 Extbase Extension
===============================
Version: see
`extension/ext_emconf.php`
Installation
------------
*
Take care that the
`php5-mysqlnd`
driver is installed:
*
The following functions are used and are only available with the native driver:
mysqli::get_result (important),
mysqli::fetch_all (nice to have)
*
See also: http://dev.mysql.com/downloads/connector/php-mysqlnd/
*
If there is a error message "Call to undefined method mysqli_stmt::get_result()",
`php5-mysqlnd`
is not installed or not active.
*
Ubuntu:
sudo apt-get install php5-mysqlnd
sudo php5enmod mysqlnd
sudo service apache2 restart
*
Install extension as regular.
*
In
`typo3conf/ext/qfq`
rename
`config.examle.ini`
to
`config.ini`
.
*
Fill
`config.ini`
with valid database credentials.
*
Insert a new content record of type
`qfq`
.
*
As a test, insert:
`sql1 = SELECT 'Hello World'`
. View the page in browser.
Usage
-----
*
https://wikiit.math.uzh.ch/it/projekt/qfq/qfq-jqwidgets
extension/qfq/qfq/Constants.php
View file @
5440cdf1
...
...
@@ -74,7 +74,6 @@ const ERROR_SIP_MALFORMED = 1005;
const
ERROR_SIP_INVALID
=
1006
;
//const ERROR_MISSING_FORM_NAME = 1007;
const
ERROR_IN_SQL_STATEMENT
=
1008
;
const
ERROR_READ_FILE
=
1009
;
const
ERROR_MISSING_SESSIONNAME
=
1010
;
const
ERROR_BROKEN_PARAMETER
=
1011
;
const
ERROR_FE_USER_UID_CHANGED
=
1012
;
...
...
@@ -115,6 +114,11 @@ const ERROR_MISSING_FORMELEMENT = 1049;
const
ERROR_STORE_VALUE_ALREADY_CODPIED
=
1100
;
const
ERROR_STORE_KEY_EXIST
=
1101
;
// I/O Error
const
ERROR_IO_READ_FILE
=
1200
;
const
ERROR_IO_WRITE
=
1203
;
const
ERROR_IO_OPEN
=
1204
;
// KeyValueParser
const
ERROR_KVP_VALUE_HAS_NO_KEY
=
1900
;
...
...
@@ -197,6 +201,7 @@ const SYSTEM_DBPW = 'DBPW';
const
SYSTEM_DB
=
'DB'
;
const
SYSTEM_TESTDB
=
'TESTDB'
;
const
SYSTEM_SESSIONNAME
=
'SESSIONNAME'
;
const
SYSTEM_SQL_LOG
=
'SQLLOG'
;
// Logging to file
// Information for: Log / Debug / Exception
const
SYSTEM_SQL_RAW
=
'sqlRaw'
;
// Type: SANATIZE_ALL / String. SQL Query (before substitute). Useful for error reporting.
const
SYSTEM_SQL_FINAL
=
'sqlFinal'
;
// Type: SANATIZE_ALL / String. SQL Query (after substitute). Useful for error reporting.
...
...
extension/qfq/qfq/store/Store.php
View file @
5440cdf1
...
...
@@ -158,7 +158,7 @@ class Store {
//TODO: sinnvollen Platz fuer qfq.ini bestimmen. In der Installationsdoku erwaehnen.
$config
=
parse_ini_file
(
__DIR__
.
'/../../../'
.
CONFIG_INI
,
false
);
}
catch
(
\
Exception
$e
)
{
throw
new
qfq\UserException
(
"Error read file "
.
CONFIG_INI
.
": "
.
$e
->
getMessage
(),
ERROR_READ_FILE
);
throw
new
qfq\UserException
(
"Error read file "
.
CONFIG_INI
.
": "
.
$e
->
getMessage
(),
ERROR_
IO_
READ_FILE
);
}
self
::
setVarArray
(
$config
,
STORE_SYSTEM
,
true
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment