seek_quarry
[ class tree: seek_quarry ] [ index: seek_quarry ] [ all elements ]

Class: ActivityModel

Source Location: /models/activity_model.php

Class Overview

Model
   |
   --ActivityModel

This is class is used to handle db results related to Administration Activities


Author(s):

  • Chris Pollett

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: Model

Model::__construct()
Sets up the database manager that will be used and name of the search engine database
Model::boldKeywords()
Given a string, wraps in bold html tags a set of key words it contains.
Model::formatPageResults()
Given an array page summarries, for each summary extracts snippets which are related to a set of search words. For each snippet, bold faces the search terms, and then creates a new summary array.
Model::getDbmsList()
Gets a list of all DBMS that work with the search engine
Model::getSnippets()
Given a string, extracts a snippets of text related to a given set of key words. For a given word a snippet is a window of characters to its left and right that is less than a maximum total number of characters.
Model::isSingleLocalhost()
Used to determine if an action involves just one yioop instance on the current local machine or not
Model::loginDbms()
Returns whether the provided dbms needs a login and password or not (sqlite or sqlite3)
Model::translateDb()
Used to get the translation of a string_id stored in the database to the given locale.

Class Details

[line 48]
This is class is used to handle db results related to Administration Activities



Tags:

author:  Chris Pollett


[ Top ]


Class Methods


constructor __construct [line 55]

ActivityModel __construct( )



Overrides Model::__construct() (Sets up the database manager that will be used and name of the search engine database)

[ Top ]

method getActivityList [line 121]

array getActivityList( )

Gets a list of activity ids, method names, and translated name of each available activity



Tags:

return:  activities


[ Top ]

method getActivityNameFromMethodName [line 68]

string getActivityNameFromMethodName( string $method_name)

Given the method name of a method to perform an activity return the translated activity name



Tags:

return:  the translated name of the activity


Parameters:

string   $method_name   string with the name of the activity method

[ Top ]


Documentation generated by phpDocumentor 1.4.3