Class DbTool
DbTool - retrieves information from database - used (mainly) by search
- Nette\Object
- BaseModule\Services\BaseService
- DispatchModule\Tools\BaseTool
- DispatchModule\Tools\DbTool implements DispatchModule\Tools\ToolInterface
public
|
#
__construct( Nette\DI\Container $container, ...Object $initialization )
Constructor used to save container |
public
boolean
|
|
public
ResultSet
|
|
public
integer
|
|
protected
boolean
|
|
protected
string|false
|
#
containsAttribute( string $name )
Check whether the *db_attribute exists in the completeData and returns its prefix. |
protected
array|false
|
#
getCriteriaParam( string $name, string $value )
Returns array with information for db criteria (table attribute name and rule) |
protected
Nette\Database\Table\Selection
|
|
protected
string
|
#
prepareKey( string $key, string $base )
Replaces key for use in SQL query (replaces %BASE_VIEW% for actual view name) |
protected
string
|
#
chooseBaseTable( )
Chooses proper base table - vw_acc_ann_tax_grouped_acc, vw_acc_ann_tax_grouped_name or vw_acc_ann_tax |
public
string
|
|
protected
array
|
#
getPredictionFeatures( integer $predictionId, string $type )
Gets specified characteristic for prediction (with its positions) |
protected
|
#
defineMultipliedRules( string $key, array $allValues, array $allDirections )
Sets possible second length criteria |
protected
string
|
|
protected
integer
|
#
lastTaxonomySelected( array $value )
Selects id of the last taxonomic category in the tree (from array of category inputs) |
public
Array
|
|
public
|
#
setSimpleSearch( boolean $val )
Set simple search flag - defines, whether only basic sequence info should be loaded |
getName(),
getWantedParameters(),
requireParameter(),
used()
|
string |
RULE_EQ
Equals rule (can be also used as IN rule, if value is an array) |
#
'eq'
|
string |
RULE_GT
Greater than rule |
#
'gt'
|
string |
RULE_LT
Less than than rule |
#
'lt'
|
string |
RULE_LIKE
Like rule |
#
'like'
|
string |
RULE_PREFIX
Prefix like rule |
#
'prefix'
|
protected
|
$repository
Test repository |
|
protected
array
|
$wantedParameters
array of wanted parameters |
|
protected
integer
|
$offset
offset of results |
#
0
|
protected
integer
|
$limit
limitation of result count |
#
0
|
public
string
|
$label
short name of the tool |
|
protected
boolean
|
$aggregateByAccession
if true, only record with longest sequence each accession number is returned |
#
false
|
protected
boolean
|
$simpleSearch
indicates whether simple search loading only basic sequence info should be performed |
#
false
|
protected
array
|
$criteria
list of criterias for query |
#
array(
self::RULE_EQ => array(),
self::RULE_GT => array(),
self::RULE_LT => array(),
self::RULE_LIKE => array(),
self::RULE_PREFIX => array()
)
|
$completeData,
$description,
$fileName
|
$container
|