Browse Source

Merge branch 'develop'

master
Timothy Warren 1 year ago
parent
commit
172eb3f6eb
100 changed files with 10578 additions and 53 deletions
  1. +20
    -0
      .editorconfig
  2. +131
    -1
      .gitignore
  3. +6
    -6
      .gitlab-ci.yml
  4. +5
    -11
      .travis.yml
  5. +5
    -23
      LICENSE.md
  6. +9
    -12
      README.md
  7. +293
    -0
      RoboFile.php
  8. +298
    -0
      apiDocumentation/classes.html
  9. +106
    -0
      apiDocumentation/classes/Exception.html
  10. +84
    -0
      apiDocumentation/classes/Exception/__clone.html
  11. +107
    -0
      apiDocumentation/classes/Exception/__construct.html
  12. +84
    -0
      apiDocumentation/classes/Exception/__toString.html
  13. +84
    -0
      apiDocumentation/classes/Exception/getCode.html
  14. +84
    -0
      apiDocumentation/classes/Exception/getFile.html
  15. +84
    -0
      apiDocumentation/classes/Exception/getLine.html
  16. +84
    -0
      apiDocumentation/classes/Exception/getMessage.html
  17. +84
    -0
      apiDocumentation/classes/Exception/getPrevious.html
  18. +84
    -0
      apiDocumentation/classes/Exception/getTrace.html
  19. +84
    -0
      apiDocumentation/classes/Exception/getTraceAsString.html
  20. +124
    -0
      apiDocumentation/classes/InvalidArgumentException.html
  21. +84
    -0
      apiDocumentation/classes/InvalidArgumentException/__clone.html
  22. +84
    -0
      apiDocumentation/classes/InvalidArgumentException/__toString.html
  23. +84
    -0
      apiDocumentation/classes/InvalidArgumentException/getCode.html
  24. +84
    -0
      apiDocumentation/classes/InvalidArgumentException/getFile.html
  25. +84
    -0
      apiDocumentation/classes/InvalidArgumentException/getLine.html
  26. +84
    -0
      apiDocumentation/classes/InvalidArgumentException/getMessage.html
  27. +84
    -0
      apiDocumentation/classes/InvalidArgumentException/getPrevious.html
  28. +84
    -0
      apiDocumentation/classes/InvalidArgumentException/getTrace.html
  29. +84
    -0
      apiDocumentation/classes/InvalidArgumentException/getTraceAsString.html
  30. +124
    -0
      apiDocumentation/classes/LogicException.html
  31. +84
    -0
      apiDocumentation/classes/LogicException/__clone.html
  32. +84
    -0
      apiDocumentation/classes/LogicException/__toString.html
  33. +84
    -0
      apiDocumentation/classes/LogicException/getCode.html
  34. +84
    -0
      apiDocumentation/classes/LogicException/getFile.html
  35. +84
    -0
      apiDocumentation/classes/LogicException/getLine.html
  36. +84
    -0
      apiDocumentation/classes/LogicException/getMessage.html
  37. +84
    -0
      apiDocumentation/classes/LogicException/getPrevious.html
  38. +84
    -0
      apiDocumentation/classes/LogicException/getTrace.html
  39. +84
    -0
      apiDocumentation/classes/LogicException/getTraceAsString.html
  40. +153
    -0
      apiDocumentation/classes/PDO.html
  41. +115
    -0
      apiDocumentation/classes/PDO/__construct.html
  42. +86
    -0
      apiDocumentation/classes/PDO/beginTransaction.html
  43. +86
    -0
      apiDocumentation/classes/PDO/commit.html
  44. +86
    -0
      apiDocumentation/classes/PDO/errorCode.html
  45. +86
    -0
      apiDocumentation/classes/PDO/errorInfo.html
  46. +97
    -0
      apiDocumentation/classes/PDO/exec.html
  47. +97
    -0
      apiDocumentation/classes/PDO/getAttribute.html
  48. +86
    -0
      apiDocumentation/classes/PDO/getAvailableDrivers.html
  49. +86
    -0
      apiDocumentation/classes/PDO/inTransaction.html
  50. +97
    -0
      apiDocumentation/classes/PDO/lastInsertId.html
  51. +103
    -0
      apiDocumentation/classes/PDO/prepare.html
  52. +97
    -0
      apiDocumentation/classes/PDO/query.html
  53. +103
    -0
      apiDocumentation/classes/PDO/quote.html
  54. +86
    -0
      apiDocumentation/classes/PDO/rollBack.html
  55. +103
    -0
      apiDocumentation/classes/PDO/setAttribute.html
  56. +338
    -0
      apiDocumentation/classes/Query_BadDBDriverException.html
  57. +290
    -0
      apiDocumentation/classes/Query_ConnectionManager.html
  58. +100
    -0
      apiDocumentation/classes/Query_ConnectionManager/__clone.html
  59. +100
    -0
      apiDocumentation/classes/Query_ConnectionManager/__sleep.html
  60. +100
    -0
      apiDocumentation/classes/Query_ConnectionManager/__wakeup.html
  61. +99
    -0
      apiDocumentation/classes/Query_ConnectionManager/connect.html
  62. +111
    -0
      apiDocumentation/classes/Query_ConnectionManager/getConnection.html
  63. +88
    -0
      apiDocumentation/classes/Query_ConnectionManager/getInstance.html
  64. +110
    -0
      apiDocumentation/classes/Query_ConnectionManager/parseParams.html
  65. +477
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver.html
  66. +104
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/__call.html
  67. +108
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/__construct.html
  68. +98
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/_quote.html
  69. +96
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/affectedRows.html
  70. +114
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/driverQuery.html
  71. +107
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getColumns.html
  72. +96
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getDbs.html
  73. +107
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getFks.html
  74. +96
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getFunctions.html
  75. +107
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getIndexes.html
  76. +87
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getLastQuery.html
  77. +96
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getProcedures.html
  78. +87
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getSchemas.html
  79. +96
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getSequences.html
  80. +97
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getSql.html
  81. +96
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getSystemTables.html
  82. +96
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getTables.html
  83. +96
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getTriggers.html
  84. +96
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getTypes.html
  85. +97
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getUtil.html
  86. +96
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/getViews.html
  87. +114
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/insertBatch.html
  88. +97
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/numRows.html
  89. +107
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/prefixTable.html
  90. +126
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/prepareExecute.html
  91. +126
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/prepareQuery.html
  92. +108
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/quoteIdent.html
  93. +107
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/quoteTable.html
  94. +108
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/setLastQuery.html
  95. +99
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/setTablePrefix.html
  96. +99
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/truncate.html
  97. +135
    -0
      apiDocumentation/classes/Query_Drivers_AbstractDriver/updateBatch.html
  98. +284
    -0
      apiDocumentation/classes/Query_Drivers_AbstractSQL.html
  99. +119
    -0
      apiDocumentation/classes/Query_Drivers_AbstractSQL/limit.html
  100. +0
    -0
      apiDocumentation/classes/Query_Drivers_AbstractUtil.html

+ 20
- 0
.editorconfig View File

@@ -0,0 +1,20 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = false
charset = utf-8
indent_style = tab
trim_trailing_whitespace = true

[*.{cpp,c,h,hpp,cxx}]
insert_final_newline = true

# Yaml files
[*.{yml,yaml}]
indent_style = space
indent_size = 4

+ 131
- 1
.gitignore View File

@@ -1,3 +1,133 @@

# Created by https://www.gitignore.io/api/linux,macos,windows,jetbrains+all

### JetBrains+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Ruby plugin and RubyMine
/.rakeTasks

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

### JetBrains+all Patch ###
# Ignores the whole idea folder
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360

.idea/

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Windows ###
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


# End of https://www.gitignore.io/api/linux,macos,windows,jetbrains+all


test_config.json
index.html
tests/db_files/*
@@ -15,4 +145,4 @@ vendor/*
composer.lock
docs/phpdoc*
.project
all_tests
all_tests

+ 6
- 6
.gitlab-ci.yml View File

@@ -15,12 +15,12 @@ variables:
POSTGRES_USER: test
POSTGRES_PASSWORD: test

test:5.6:
image: php:5.6
test:7.1:
image: php:7.1
script:
- phpunit -c build --no-coverage
- phpunit -c build --no-coverage

test:7:
image: php:7
test:7.2:
image: php:7.2
script:
- phpunit -c build --no-coverage
- phpunit -c build --no-coverage

+ 5
- 11
.travis.yml View File

@@ -3,23 +3,20 @@ sudo: false
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7
- hhvm
- 7.1
- 7.2
- nightly

before_script:
- psql -c 'DROP DATABASE IF EXISTS test;' -U postgres
- psql -c 'create database test;' -U postgres
- mysql -e 'create database IF NOT EXISTS test;'
- composer install

script:
- mkdir -p build/logs
- cd build
- phpunit --coverage-clover build/logs/clover.xml
- ../vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml
- cd ../

after_script:
@@ -28,7 +25,4 @@ after_script:

matrix:
allow_failures:
- php: 5.3
- php: 5.4
- php: 5.5
- php: nightly
- php: nightly

+ 5
- 23
LICENSE.md View File

@@ -1,27 +1,9 @@
# DON'T BE A DICK PUBLIC LICENSE
The MIT License (MIT)

> Version 1, December 2009
Copyright (c) 2016 Timothy J. Warren

> Copyright (C) 2012 Timothy J. Warren <tim@timshomepage.net>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

> DON'T BE A DICK PUBLIC LICENSE
> TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

1. Do whatever you like with the original work, just don't be a dick.

Being a dick includes - but is not limited to - the following instances:

1a. Outright copyright infringement - Don't just copy this and change the name.
1b. Selling the unmodified original with no work done what-so-ever, that's REALLY being a dick.
1c. Modifying the original work to contain hidden harmful content. That would make you a PROPER dick.

2. If you become rich through modifications, related works/services, or supporting the original work,
share the love. Only a dick would make loads off this work and not buy the original work's
creator(s) a pint.

3. Code is provided with no warranty. Using somebody else's code and bitching when it goes wrong makes
you a DONKEY dick. Fix the problem yourself. A non-dick would submit the fix back.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 9
- 12
README.md View File

@@ -5,10 +5,10 @@ A query builder/database abstraction layer, using prepared statements for securi
[![Build Status](https://jenkins.timshomepage.net/buildStatus/icon?job=query)](https://jenkins.timshomepage.net/job/query/)
[![Code Coverage](https://scrutinizer-ci.com/g/aviat4ion/Query/badges/coverage.png?b=develop)](https://scrutinizer-ci.com/g/aviat4ion/Query/?branch=develop)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/aviat4ion/Query/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/aviat4ion/Query/?branch=develop)
[![Latest Stable Version](https://poser.pugx.org/aviat4ion/query/v/stable.png)](https://packagist.org/packages/aviat4ion/query)
[![Total Downloads](https://poser.pugx.org/aviat4ion/query/downloads.png)](https://packagist.org/packages/aviat4ion/query)
[![Latest Unstable Version](https://poser.pugx.org/aviat4ion/query/v/unstable.png)](https://packagist.org/packages/aviat4ion/query)
[![License](https://poser.pugx.org/aviat4ion/query/license.png)](http://www.dbad-license.org/)
[![Latest Stable Version](https://poser.pugx.org/aviat/query/v/stable.png)](https://packagist.org/packages/aviat/query)
[![Total Downloads](https://poser.pugx.org/aviat/query/downloads.png)](https://packagist.org/packages/aviat/query)
[![Latest Unstable Version](https://poser.pugx.org/aviat/query/v/unstable.png)](https://packagist.org/packages/aviat/query)
[![License](https://poser.pugx.org/aviat/query/license.png)](http://www.dbad-license.org/)

## Requirements
* PDO extensions for the databases you wish to use (unless it's Firebird, in which case, the interbase extension is required)
@@ -16,7 +16,6 @@ A query builder/database abstraction layer, using prepared statements for securi

## Databases Supported

* Firebird (via interbase extension)
* MySQL
* PostgreSQL
* SQLite
@@ -24,9 +23,6 @@ A query builder/database abstraction layer, using prepared statements for securi
## Including Query in your application

* Install via composer and include `vendor/autoload.php`
or
* Just include the `autoload.php` file. This will automatically load the classes that are supported by the current PHP installation.


## Connecting

@@ -44,7 +40,7 @@ $params = array(
'database' => 'test_db',

// Only required for
// SQLite or Firebird
// SQLite
'file' => '/path/to/db/file',

// Optional paramaters
@@ -83,11 +79,12 @@ Query('old')->query($sql);

### Running Queries
Query uses the same interface as CodeIgniter's [Query Builder](http://www.codeigniter.com/user_guide/database/query_builder.html) class. However, it does not implement the `update_batch` or caching methods. For specific query builder methods, see the [class documentation](https://gitdev.timshomepage.net/Query/docs/classes/Query_QueryBuilder.html#methods).
Underscored methods are also aliased to camel case methods.

#### You can also run queries manually.

To run a prepared statement, call
`$db->prepare_execute($sql, $params)`.
`$db->prepareExecute($sql, $params)`.

To run a plain query, `$db->query($sql)`

@@ -100,8 +97,8 @@ An example of a moderately complex query:
$query = $db->select('id, key as k, val')
->from('table t')
->where('k >', 3)
->or_where('id !=' 5)
->order_by('val', 'DESC')
->orWhere('id !=' 5)
->orderBy('val', 'DESC')
->limit(3, 1)
->get();
```

+ 293
- 0
RoboFile.php View File

@@ -0,0 +1,293 @@
<?php declare(strict_types=1);
if ( ! function_exists('glob_recursive'))
{
// Does not support flag GLOB_BRACE
function glob_recursive($pattern, $flags = 0)
{
$files = glob($pattern, $flags);

foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir)
{
$files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags));
}

return $files;
}
}

/**
* This is project's console commands configuration for Robo task runner.
*
* @see http://robo.li/
*/
class RoboFile extends \Robo\Tasks {

/**
* Directories used by analysis tools
*
* @var array
*/
protected $taskDirs = [
'build/logs',
'build/pdepend',
'build/phpdox',
];

/**
* Directories to remove with the clean task
*
* @var array
*/
protected $cleanDirs = [
'coverage',
'apiDocumentation',
'phpdoc',
'build/logs',
'build/phpdox',
'build/pdepend'
];


/**
* Do static analysis tasks
*/
public function analyze()
{
$this->prepare();
$this->lint();
$this->phploc(TRUE);
$this->phpcs(TRUE);
$this->dependencyReport();
$this->phpcpdReport();
}

/**
* Run all tests, generate coverage, generate docs, generate code statistics
*/
public function build()
{
$this->analyze();
$this->coverage();
$this->docs();
}

/**
* Cleanup temporary files
*/
public function clean()
{
// So the task doesn't complain,
// make any 'missing' dirs to cleanup
array_map(function ($dir) {
if ( ! is_dir($dir))
{
`mkdir -p {$dir}`;
}
}, $this->cleanDirs);

$this->_cleanDir($this->cleanDirs);
$this->_deleteDir($this->cleanDirs);
}

/**
* Run unit tests and generate coverage reports
*/
public function coverage()
{
$this->_run(['phpdbg -qrr -- vendor/bin/phpunit -c build']);
}

/**
* Generate documentation with phpdox
*/
public function docs()
{
$this->_run(['vendor/bin/phpdox']);
}

/**
* Verify that source files are valid
*/
public function lint()
{
$files = $this->getAllSourceFiles();

$chunks = array_chunk($files, (int)`getconf _NPROCESSORS_ONLN`);

foreach($chunks as $chunk)
{
$this->parallelLint($chunk);
}
}

/**
* Run the phpcs tool
*
* @param bool $report - if true, generates reports instead of direct output
*/
public function phpcs($report = FALSE)
{
$dir = __DIR__;

$report_cmd_parts = [
'vendor/bin/phpcs',
"--standard=./build/CodeIgniter",
"--report-checkstyle=./build/logs/phpcs.xml",
];

$normal_cmd_parts = [
'vendor/bin/phpcs',
"--standard=./build/CodeIgniter",
];

$cmd_parts = ($report) ? $report_cmd_parts : $normal_cmd_parts;

$this->_run($cmd_parts);
}

/**
* Run the phploc tool
*
* @param bool $report - if true, generates reports instead of direct output
*/
public function phploc($report = FALSE)
{
// Command for generating reports
$report_cmd_parts = [
'vendor/bin/phploc',
'--count-tests',
'--log-csv=build/logs/phploc.csv',
'--log-xml=build/logs/phploc.xml',
'src',
'tests'
];

// Command for generating direct output
$normal_cmd_parts = [
'vendor/bin/phploc',
'--count-tests',
'src',
'tests'
];

$cmd_parts = ($report) ? $report_cmd_parts : $normal_cmd_parts;

$this->_run($cmd_parts);
}

/**
* Create temporary directories
*/
public function prepare()
{
array_map([$this, '_mkdir'], $this->taskDirs);
}

/**
* Lint php files and run unit tests
*/
public function test()
{
$this->lint();
$this->taskPhpUnit()
->configFile('phpunit.xml')
->run();
$this->_run(["php tests/index.php"]);
}

/**
* Watches for file updates, and automatically runs appropriate actions
*/
public function watch()
{
$this->taskWatch()
->monitor('composer.json', function() {
$this->taskComposerUpdate()->run();
})
->monitor('src', function () {
$this->taskExec('test')->run();
})
->monitor('tests', function () {
$this->taskExec('test')->run();
})
->run();
}

/**
* Create pdepend reports
*/
protected function dependencyReport()
{
$cmd_parts = [
'vendor/bin/pdepend',
'--jdepend-xml=build/logs/jdepend.xml',
'--jdepend-chart=build/pdepend/dependencies.svg',
'--overview-pyramid=build/pdepend/overview-pyramid.svg',
'src'
];
$this->_run($cmd_parts);
}

/**
* Get the total list of source files, including tests
*
* @return array
*/
protected function getAllSourceFiles()
{
$files = array_merge(
glob_recursive('build/*.php'),
glob_recursive('src/*.php'),
glob_recursive('tests/*.php'),
glob('*.php')
);

sort($files);

return $files;
}

/**
* Run php's linter in one parallel task for the passed chunk
*
* @param array $chunk
*/
protected function parallelLint(array $chunk)
{
$task = $this->taskParallelExec()
->timeout(5)
->printed(FALSE);

foreach($chunk as $file)
{
$task = $task->process("php -l {$file}");
}

$task->run();
}

/**
* Generate copy paste detector report
*/
protected function phpcpdReport()
{
$cmd_parts = [
'vendor/bin/phpcpd',
'--log-pmd build/logs/pmd-cpd.xml',
'src'
];
$this->_run($cmd_parts);
}

/**
* Shortcut for joining an array of command arguments
* and then running it
*
* @param array $cmd_parts - command arguments
* @param string $join_on - what to join the command arguments with
*/
protected function _run(array $cmd_parts, $join_on = ' ')
{
$this->taskExec(implode($join_on, $cmd_parts))->run();
}
}

+ 298
- 0
apiDocumentation/classes.html View File

@@ -0,0 +1,298 @@
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Overview</title>
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="index.html">Overview</a>
</li>
<li class="separator">
<a href="namespaces.html">Namespaces</a>
</li>
<li>
<a href="interfaces.html">Interfaces</a>
</li>
<li>
<a href="classes.html">Classes</a>
</li>
<li class="separator">
<a href="source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<h1>Classes</h1>
<div class="container">
<h2 id="">\</h2>
<table class="styled">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th/>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="classes/Exception.html">Exception</a>
</td>
<td>
<span class="unavailable">No description available</span>
</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/InvalidArgumentException.html">InvalidArgumentException</a>
</td>
<td>
<span class="unavailable">No description available</span>
</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/LogicException.html">LogicException</a>
</td>
<td>
<span class="unavailable">No description available</span>
</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/PDO.html">PDO</a>
</td>
<td>
<span class="unavailable">No description available</span>
</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
</tbody>
</table>
</div>
<div class="container">
<h2 id="Query">\Query</h2>
<table class="styled">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th/>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="classes/Query_BadDBDriverException.html">BadDBDriverException</a>
</td>
<td>Generic exception for bad drivers</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_ConnectionManager.html">ConnectionManager</a>
</td>
<td>Connection manager class to manage connections for the Query method</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_QueryBuilder.html">QueryBuilder</a>
</td>
<td>Convenience class for creating sql queries</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_QueryParser.html">QueryParser</a>
</td>
<td>Utility Class to parse sql clauses for properly escaping identifiers</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_State.html">State</a>
</td>
<td>Query builder state</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
</tbody>
</table>
</div>
<div class="container">
<h2 id="Query_Drivers">\Query\Drivers</h2>
<table class="styled">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th/>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="classes/Query_Drivers_AbstractDriver.html">AbstractDriver</a>
</td>
<td>Base Database class</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_Drivers_AbstractSQL.html">AbstractSQL</a>
</td>
<td>Parent for database-specific syntax subclasses</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_Drivers_AbstractUtil.html">AbstractUtil</a>
</td>
<td>Abstract class defining database / table creation methods</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
</tbody>
</table>
</div>
<div class="container">
<h2 id="Query_Drivers_Mysql">\Query\Drivers\Mysql</h2>
<table class="styled">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th/>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="classes/Query_Drivers_Mysql_Driver.html">Driver</a>
</td>
<td>MySQL specific class</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_Drivers_Mysql_SQL.html">SQL</a>
</td>
<td>MySQL specific SQL</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_Drivers_Mysql_Util.html">Util</a>
</td>
<td>MySQL-specific backup, import and creation methods</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
</tbody>
</table>
</div>
<div class="container">
<h2 id="Query_Drivers_Pgsql">\Query\Drivers\Pgsql</h2>
<table class="styled">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th/>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="classes/Query_Drivers_Pgsql_Driver.html">Driver</a>
</td>
<td>PostgreSQL specific class</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_Drivers_Pgsql_SQL.html">SQL</a>
</td>
<td>PostgreSQL specific SQL</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_Drivers_Pgsql_Util.html">Util</a>
</td>
<td>Postgres-specific backup, import and creation methods</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
</tbody>
</table>
</div>
<div class="container">
<h2 id="Query_Drivers_Sqlite">\Query\Drivers\Sqlite</h2>
<table class="styled">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th/>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="classes/Query_Drivers_Sqlite_Driver.html">Driver</a>
</td>
<td>SQLite specific class</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_Drivers_Sqlite_SQL.html">SQL</a>
</td>
<td>SQLite Specific SQL</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
<tr>
<td>
<a href="classes/Query_Drivers_Sqlite_Util.html">Util</a>
</td>
<td>SQLite-specific backup, import and creation methods</td>
<td class="testresult-EMPTY">EMPTY
</td>
</tr>
</tbody>
</table>
</div>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 106
- 0
apiDocumentation/classes/Exception.html View File

@@ -0,0 +1,106 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Exception</title>
<link rel="stylesheet" type="text/css" href="../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../index.html">Overview</a>
</li>
<li class="separator">
<a href="../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../index.html">Overview</a>
</li>
<li class="separator">
<a href="../classes.html">Classes</a>
</li>
<li class="separator">Exception</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#methods">Methods</a>
</li>
</ul>
</nav>
<section>
<h1 id="introduction"><small>\</small>Exception</h1>
<h4/>
<p/>
<h2 id="synopsis">Synopsis</h2>
<div class="synopsis">class Exception
{<br/><ul class="none"><li>// methods</li><li>public void <a title="Exception" href="../classes/Exception/__construct.html">__construct</a>()
</li><li>public final string <a title="Exception" href="../classes/Exception/getMessage.html">getMessage</a>()
</li><li>public final Throwable <a title="Exception" href="../classes/Exception/getPrevious.html">getPrevious</a>()
</li><li>public final mixed <a title="Exception" href="../classes/Exception/getCode.html">getCode</a>()
</li><li>public final string <a title="Exception" href="../classes/Exception/getFile.html">getFile</a>()
</li><li>public final int <a title="Exception" href="../classes/Exception/getLine.html">getLine</a>()
</li><li>public final array <a title="Exception" href="../classes/Exception/getTrace.html">getTrace</a>()
</li><li>public final string <a title="Exception" href="../classes/Exception/getTraceAsString.html">getTraceAsString</a>()
</li><li>public string <a title="Exception" href="../classes/Exception/__toString.html">__toString</a>()
</li><li> final void <a title="Exception" href="../classes/Exception/__clone.html">__clone</a>()
</li></ul>

}<br/></div>
<h2 id="methods">Methods</h2>
<div class="styled">
<h4>public</h4>
<ul>
<li id="__construct"><a title="Exception" href="../classes/Exception/__construct.html">__construct()</a>
— Construct the exception</li>
<li id="__toString"><a title="Exception" href="../classes/Exception/__toString.html">__toString()</a>
— String representation of the exception</li>
<li id="getCode"><a title="Exception" href="../classes/Exception/getCode.html">getCode()</a>
— Gets the Exception code</li>
<li id="getFile"><a title="Exception" href="../classes/Exception/getFile.html">getFile()</a>
— Gets the file in which the exception was created</li>
<li id="getLine"><a title="Exception" href="../classes/Exception/getLine.html">getLine()</a>
— Gets the line in which the exception was created</li>
<li id="getMessage"><a title="Exception" href="../classes/Exception/getMessage.html">getMessage()</a>
— Gets the Exception message</li>
<li id="getPrevious"><a title="Exception" href="../classes/Exception/getPrevious.html">getPrevious()</a>
— Returns previous Exception</li>
<li id="getTrace"><a title="Exception" href="../classes/Exception/getTrace.html">getTrace()</a>
— Gets the stack trace</li>
<li id="getTraceAsString"><a title="Exception" href="../classes/Exception/getTraceAsString.html">getTraceAsString()</a>
— Gets the stack trace as a string</li>
</ul>
</div>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 84
- 0
apiDocumentation/classes/Exception/__clone.html View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Exception::__clone</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#"/>
</li>
<li class="separator">
<a title="Exception" href="../../classes/Exception.html">Exception</a>
</li>
<li class="separator">__clone</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#return">Return</a>
</li>
</ul>
</nav>
<section>
<h1><small>Exception::</small>__clone</h1>
<h4>Clone the exception</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code> function __clone()
</code>
</div>
<h2 id="return">Returns</h2>
<dl class="styled">
<dt>void</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 107
- 0
apiDocumentation/classes/Exception/__construct.html View File

@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Exception::__construct</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#"/>
</li>
<li class="separator">
<a title="Exception" href="../../classes/Exception.html">Exception</a>
</li>
<li class="separator">__construct</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#parameter">Parameter</a>
</li>
<li>
<a href="#return">Return</a>
</li>
</ul>
</nav>
<section>
<h1><small>Exception::</small>__construct</h1>
<h4>Construct the exception</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function __construct(string
$message,
int
$code,
<a title="" href="../../classes/.html"/>
$previous )
</code>
</div>
<h2 id="parameterlist">Parameters</h2>
<dl class="styled">
<dt><code>$message</code>
string</dt>
<dd/>
<dt><code>$code</code>
int</dt>
<dd/>
<dt><code>$previous</code>
<a title="" href="../../classes/.html"/></dt>
<dd/>
</dl>
<h2 id="return">Returns</h2>
<dl class="styled">
<dt>void</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 84
- 0
apiDocumentation/classes/Exception/__toString.html View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Exception::__toString</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#"/>
</li>
<li class="separator">
<a title="Exception" href="../../classes/Exception.html">Exception</a>
</li>
<li class="separator">__toString</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#return">Return</a>
</li>
</ul>
</nav>
<section>
<h1><small>Exception::</small>__toString</h1>
<h4>String representation of the exception</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function __toString()
</code>
</div>
<h2 id="return">Returns</h2>
<dl class="styled">
<dt>string</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 84
- 0
apiDocumentation/classes/Exception/getCode.html View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Exception::getCode</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#"/>
</li>
<li class="separator">
<a title="Exception" href="../../classes/Exception.html">Exception</a>
</li>
<li class="separator">getCode</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#return">Return</a>
</li>
</ul>
</nav>
<section>
<h1><small>Exception::</small>getCode</h1>
<h4>Gets the Exception code</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function getCode()
</code>
</div>
<h2 id="return">Returns</h2>
<dl class="styled">
<dt>mixed</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 84
- 0
apiDocumentation/classes/Exception/getFile.html View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Exception::getFile</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#"/>
</li>
<li class="separator">
<a title="Exception" href="../../classes/Exception.html">Exception</a>
</li>
<li class="separator">getFile</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#return">Return</a>
</li>
</ul>
</nav>
<section>
<h1><small>Exception::</small>getFile</h1>
<h4>Gets the file in which the exception was created</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function getFile()
</code>
</div>
<h2 id="return">Returns</h2>
<dl class="styled">
<dt>string</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 84
- 0
apiDocumentation/classes/Exception/getLine.html View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Exception::getLine</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#"/>
</li>
<li class="separator">
<a title="Exception" href="../../classes/Exception.html">Exception</a>
</li>
<li class="separator">getLine</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#return">Return</a>
</li>
</ul>
</nav>
<section>
<h1><small>Exception::</small>getLine</h1>
<h4>Gets the line in which the exception was created</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function getLine()
</code>
</div>
<h2 id="return">Returns</h2>
<dl class="styled">
<dt>int</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 84
- 0
apiDocumentation/classes/Exception/getMessage.html View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Exception::getMessage</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#"/>
</li>
<li class="separator">
<a title="Exception" href="../../classes/Exception.html">Exception</a>
</li>
<li class="separator">getMessage</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#return">Return</a>
</li>
</ul>
</nav>
<section>
<h1><small>Exception::</small>getMessage</h1>
<h4>Gets the Exception message</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function getMessage()
</code>
</div>
<h2 id="return">Returns</h2>
<dl class="styled">
<dt>string</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 84
- 0
apiDocumentation/classes/Exception/getPrevious.html View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Exception::getPrevious</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#"/>
</li>
<li class="separator">
<a title="Exception" href="../../classes/Exception.html">Exception</a>
</li>
<li class="separator">getPrevious</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#return">Return</a>
</li>
</ul>
</nav>
<section>
<h1><small>Exception::</small>getPrevious</h1>
<h4>Returns previous Exception</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function getPrevious()
</code>
</div>
<h2 id="return">Returns</h2>
<dl class="styled">
<dt>Throwable</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 84
- 0
apiDocumentation/classes/Exception/getTrace.html View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Exception::getTrace</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#"/>
</li>
<li class="separator">
<a title="Exception" href="../../classes/Exception.html">Exception</a>
</li>
<li class="separator">getTrace</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#return">Return</a>
</li>
</ul>
</nav>
<section>
<h1><small>Exception::</small>getTrace</h1>
<h4>Gets the stack trace</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function getTrace()
</code>
</div>
<h2 id="return">Returns</h2>
<dl class="styled">
<dt>array</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 84
- 0
apiDocumentation/classes/Exception/getTraceAsString.html View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - Exception::getTraceAsString</title>
<link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../../index.html">Overview</a>
</li>
<li class="separator">
<a href="../../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../../classes.html#"/>
</li>
<li class="separator">
<a title="Exception" href="../../classes/Exception.html">Exception</a>
</li>
<li class="separator">getTraceAsString</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#return">Return</a>
</li>
</ul>
</nav>
<section>
<h1><small>Exception::</small>getTraceAsString</h1>
<h4>Gets the stack trace as a string</h4>
<p/>
<ul/>
<h2 id="signature">Signature</h2>
<div class="styled synopsis">
<code>public function getTraceAsString()
</code>
</div>
<h2 id="return">Returns</h2>
<dl class="styled">
<dt>string</dt>
<dd/>
</dl>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>

+ 124
- 0
apiDocumentation/classes/InvalidArgumentException.html View File

@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>phpDox - InvalidArgumentException</title>
<link rel="stylesheet" type="text/css" href="../css/style.css" media="screen"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<nav class="topnav">
<ul>
<li>
<div class="logo"><span>/**</span>phpDox</div>
</li>
<li class="separator">
<a href="../index.html">Overview</a>
</li>
<li class="separator">
<a href="../namespaces.html">Namespaces</a>
</li>
<li>
<a href="../interfaces.html">Interfaces</a>
</li>
<li>
<a href="../classes.html">Classes</a>
</li>
<li class="separator">
<a href="../source/index.html">Source</a>
</li>
</ul>
</nav>
<div id="mainstage">
<div class="box">
<ul class="breadcrumb">
<li>
<a href="../index.html">Overview</a>
</li>
<li class="separator">
<a href="../classes.html">Classes</a>
</li>
<li class="separator">InvalidArgumentException</li>
</ul>
</div>
<nav class="box">
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<li>
<a href="#synopsis">Synopsis</a>
</li>
<li>
<a href="#hierarchy">Hierarchy</a>
</li>
<li>
<a href="#methods">Methods</a>
</li>
</ul>
</nav>
<section>
<h1 id="introduction"><small>\</small>InvalidArgumentException</h1>
<h4/>
<p/>
<h2 id="synopsis">Synopsis</h2>
<div class="synopsis">class InvalidArgumentException
extends <a title="LogicException" href="../classes/LogicException.html">LogicException</a>
{<br/><ul class="none"><li>// methods</li><li>public final string <a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getMessage.html">getMessage</a>()
</li><li>public final Throwable <a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getPrevious.html">getPrevious</a>()
</li><li>public final mixed <a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getCode.html">getCode</a>()
</li><li>public final string <a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getFile.html">getFile</a>()
</li><li>public final int <a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getLine.html">getLine</a>()
</li><li>public final array <a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getTrace.html">getTrace</a>()
</li><li>public final string <a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getTraceAsString.html">getTraceAsString</a>()
</li><li>public string <a title="InvalidArgumentException" href="../classes/InvalidArgumentException/__toString.html">__toString</a>()
</li><li> final void <a title="InvalidArgumentException" href="../classes/InvalidArgumentException/__clone.html">__clone</a>()
</li></ul>

}<br/></div>
<h2 id="hierarchy">Hierarchy</h2>
<div class="styled">
<h4>Extends</h4>
<ul>
<li>
<a title="LogicException" href="../classes/LogicException.html">LogicException</a>
</li>
</ul>
</div>
<h2 id="methods">Methods</h2>
<div class="styled">
<h4>public</h4>
<ul>
<li id="__toString">
<a title="InvalidArgumentException" href="../classes/InvalidArgumentException/__toString.html">__toString()</a>
</li>
<li id="getCode">
<a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getCode.html">getCode()</a>
</li>
<li id="getFile">
<a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getFile.html">getFile()</a>
</li>
<li id="getLine">
<a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getLine.html">getLine()</a>
</li>
<li id="getMessage">
<a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getMessage.html">getMessage()</a>
</li>
<li id="getPrevious">
<a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getPrevious.html">getPrevious()</a>
</li>
<li id="getTrace">
<a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getTrace.html">getTrace()</a>
</li>
<li id="getTraceAsString">
<a title="InvalidArgumentException" href="../classes/InvalidArgumentException/getTraceAsString.html">getTraceAsString()</a>
</li>
</ul>
</div>
</section>
</div>
<footer>
<span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span>
</footer>
</body>
</html>