Overview

Namespaces

  • AnalyseModule
    • Models
  • BaseModule
    • Exceptions
    • Models
    • Repository
    • Services
  • DispatchModule
    • Helpers
    • Models
    • Tools
  • PredictModule
  • SearchModule

Classes

  • Authenticator
  • BaseService
  • DbService
  • Overview
  • Namespace
  • Class

Class DbService

DbService - general service for accessing database

Nette\Object
Extended by BaseModule\Services\BaseService
Extended by DispatchModule\Tools\BaseTool
Extended by BaseModule\Services\DbService
Namespace: BaseModule\Services
Located at BaseModule/services/DbService.php
Methods summary
public array
# getSubTaxonomyFull( integer $id )

Gets names, subtree sizes and ids of child taxonomy categories (not species in the category!)

Gets names, subtree sizes and ids of child taxonomy categories (not species in the category!)

Parameters

$id
taxonomy category

Returns

array
childe taxonomy category - array indexed by id containing name and subtreesize
public array
# getSubSpeciesFull( integer $id )

Gets ids of species in a category

Gets ids of species in a category

Parameters

$id
taxonomy category

Returns

array
childe taxonomy category ids
public array
# getChildrenTree( array $preselected )

Prepares array containing ids from children to the root - basically input is id of a category (or organism), and this method traverses up building complete tree "expanded" in the way that the input id is visible

Prepares array containing ids from children to the root - basically input is id of a category (or organism), and this method traverses up building complete tree "expanded" in the way that the input id is visible

Parameters

$preselected
list of selected id's

Returns

array
children-parent structure from root to the specified ids
public array
# getFulltextMatchesTree( string $fulltext )

Load tree for fulltext matches with path to matches only

Load tree for fulltext matches with path to matches only

Parameters

$fulltext
fulltext searched word

Returns

array
two arrays, complete tree and ids of matches
public array
# getFulltextWholeTree( string $fulltext )

Load complete (expanded) tree for fulltext matches

Load complete (expanded) tree for fulltext matches

Parameters

$fulltext
fulltext searched word

Returns

array
two arrays, complete tree and ids of matches
public array
# getFulltextWholeTreeWithHelp( array $ids )

Load complete (expanded) tree for fulltext matches

Load complete (expanded) tree for fulltext matches

Parameters

$ids
array of ids of matches

Returns

array
complete tree
public array
# getFulltextIds( string $fulltext )

Gets ids for fulltext match

Gets ids for fulltext match

Parameters

$fulltext
search string

Returns

array
array of ids of categories & species, in which names the string is contained
public array
# getFulltextSpecie( string $fulltext )

Gets rows for fulltext match

Gets rows for fulltext match

Parameters

$fulltext
search string

Returns

array
array of records, in which names the string is contained
public array
# getBasicInfoForAccessions( array $accessions )

Get basic information for accession numbers (faster than DbTool)

Get basic information for accession numbers (faster than DbTool)

Parameters

$accessions
list of accesion numbers along with stops and starts (split by ':')

Returns

array
list of basic information about each sequence
public ActiveRow
# getRssData( integer $amount = 15 )

Gets last RSS news

Gets last RSS news

Parameters

$amount
limit of RSS news to display

Returns

ActiveRow
list of last RSS news
public integer
# updateRss( array $data, integer $id )

Update RSS record

Update RSS record

Parameters

$data
data to update
$id
record id

Returns

integer
number of records updated
public Nette\Database\Table\ActiveRow
# insertRss( array $data )

Insert RSS record

Insert RSS record

Parameters

$data

Returns

Nette\Database\Table\ActiveRow
public Nette\Database\Table\ActiveRow
# findRssById( array $id )

Find RSS record

Find RSS record

Parameters

$id

Returns

Nette\Database\Table\ActiveRow
public integer
# deleteRss( integer $id )

Deletes RSS record

Deletes RSS record

Parameters

$id
record id

Returns

integer
number of records deleted
Methods inherited from DispatchModule\Tools\BaseTool
getName(), getWantedParameters(), requireParameter(), used()
Methods inherited from BaseModule\Services\BaseService
__construct()
Properties summary
protected BaseModule\Repository\BaseRepository $repository

Base db repository

Base db repository

Inject

#
Properties inherited from DispatchModule\Tools\BaseTool
$completeData, $description, $fileName, $wantedParameters
Properties inherited from BaseModule\Services\BaseService
$container
API documentation generated by ApiGen