Located in /Share/Share/sql.php (line 27)
Horde_Share | --Horde_Share_sql
Class | Description |
---|---|
![]() |
|
![]() |
Handle for the current database connection.
SQL connection parameters
The Horde_Share_Object subclass to instantiate objects as
Main share table for the current scope.
Handle for the current database connection, used for writing. Defaults to the same handle as $db if a separate write database is not required.
Inherited from Horde_Share
Horde_Share::$_app
Horde_Share::$_cache
Horde_Share::$_listcache
Horde_Share::$_root
Horde_Share::$_shareMap
Horde_Share::$_sortList
Get storage table
Refetence to write db
Lists *all* shares for the current app/share, regardless of permissions.
This is for admin functionality and scripting tools, and shouldn't be called from user-level code!
Returns an array of all shares that $userid has access to.
Adds a share to the shares system.
The share must first be created with Horde_Share_sql::_newShare(), and have any initial details added to it, before this function is called.
Builds a list of permission bit masks from the "perm" column.
Attempts to open a connection to the sql server.
Returns the number of shares that $userid has access to.
Checks if a share exists in the system.
Utility function to convert from the SQL server's charset.
Returns a Horde_Share_Object_sql object corresponding to the given share name, with the details retrieved appropriately.
Returns a Horde_Share_Object_sql object corresponding to the given unique ID, with the details retrieved appropriately.
Returns an array of criteria for querying shares.
Get groups permissions
Returns an array of Horde_Share_Object_sql objects corresponding to the given set of unique IDs, with the details retrieved appropriately.
Get users permissions
Finds out if the share has user set
Finds out if the share has user set
Lists *all* shares for the current app/share, regardless of permissions.
Helper function to load the permissions data into the share data
Returns a new share object.
Removes a share from the shares system permanently.
Resets the current database name so that MDB2 is always selecting the database before sending a query.
Utility function to convert TO the SQL server's charset.
Convert an array keyed on client keys to an array keyed on the driver keys.
Returns the properties that need to be serialized.
Initializes the object.
Inherited From Horde_Share
Horde_Share::Horde_Share()
Horde_Share::addShare()
Horde_Share::countShares()
Horde_Share::exists()
Horde_Share::getIdentityByShare()
Horde_Share::getPermissions()
Horde_Share::getShare()
Horde_Share::getShareById()
Horde_Share::getShares()
Horde_Share::listAllShares()
Horde_Share::listShares()
Horde_Share::newShare()
Horde_Share::removeShare()
Horde_Share::shutdown()
Horde_Share::singleton()
Horde_Share::_sortShares()
Horde_Share::__sleep()
Horde_Share::__wakeup()
Documentation generated on Sun, 30 Jan 2011 05:21:48 +0000 by phpDocumentor 1.4.3