Class Scry_Driver

Description

Scry_Driver Class

$Horde: scry/lib/Driver.php,v 1.41 2007/01/02 12:48:58 jan Exp $

Copyright 2003-2007 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.fsf.org/copyleft/gpl.html.

Located in /lib/Driver.php (line 15)


	
			
Direct descendents
Class Description
 class Scry_Driver_sql Scry_Driver_sql Class
Variable Summary
 mixed $_params
Method Summary
 Scry_Driver Scry_Driver ( $params)
 Scry_Driver &factory ([string $driver = null], [array $params = null])
 boolean isEditable ( $poll_id)
 boolean isOpen (int $poll_id)
 void isVotable ( $poll_id)
 void logVote ( $vote)
 void savePoll ( &$info)
 mixed &singleton ([string $driver = null], [array $params = null])
Variables
mixed $_params (line 17)
Methods
Constructor Scry_Driver (line 19)
Scry_Driver Scry_Driver ( $params)
  • $params
factory (line 186)

Attempts to return a concrete Scry_Driver instance based on $driver.

  • return: The newly created concrete Scry_Driver instance, or false on an error.
Scry_Driver &factory ([string $driver = null], [array $params = null])
  • string $driver: The type of concrete Scry_Driver subclass to return.
  • array $params: A hash containing any additional configuration or connection parameters a subclass might need.
isEditable (line 158)

Returns the editable status of the current poll.

  • return: Whether the current poll is editable or not.
boolean isEditable ( $poll_id)
  • $poll_id
isOpen (line 134)

Check if the poll is within the time limits.

  • return: True if poll is open, false otherwise
boolean isOpen (int $poll_id)
  • int $poll_id: ID of poll to check
isVotable (line 94)
void isVotable ( $poll_id)
  • $poll_id
logVote (line 58)
void logVote ( $vote)
  • $vote
savePoll (line 24)
void savePoll ( &$info)
  • &$info
singleton (line 227)

Attempts to return a reference to a concrete Scry_Driver instance based on $driver.

It will only create a new instance if no Scry_Driver instance with the same parameters currently exists.

This should be used if multiple storage sources are required.

This method must be invoked as: $var = &Scry_Driver::singleton()

  • return: The created concrete Scry_Driver instance, or false on error.
mixed &singleton ([string $driver = null], [array $params = null])
  • string $driver: The type of concrete Scry_Driver subclass to return.
  • array $params: A hash containing any additional configuration or connection parameters a subclass might need.

Documentation generated on Sun, 30 Jan 2011 05:37:10 +0000 by phpDocumentor 1.4.3