forked from GNUsocial/gnu-social
Add translator documentation.
Broke a few long lines. i18n/L10n updates. Whitespace updates.
This commit is contained in:
@@ -40,7 +40,6 @@ if (!defined('STATUSNET')) {
|
||||
* - schemaDef (call self::doSchemaDef)
|
||||
* - record (call self::doRecord)
|
||||
*/
|
||||
|
||||
class Yammer_common extends Memcached_DataObject
|
||||
{
|
||||
public $__table = 'yammer_XXXX'; // table name
|
||||
@@ -50,7 +49,7 @@ class Yammer_common extends Memcached_DataObject
|
||||
public $created; // datetime
|
||||
|
||||
/**
|
||||
* @fixme add a 'references' thing for the foreign key when we support that
|
||||
* @todo FIXME: Add a 'references' thing for the foreign key when we support that
|
||||
*/
|
||||
protected static function doSchemaDef($field)
|
||||
{
|
||||
@@ -87,7 +86,6 @@ class Yammer_common extends Memcached_DataObject
|
||||
*
|
||||
* @return array list of key field names
|
||||
*/
|
||||
|
||||
function keys()
|
||||
{
|
||||
return array_keys($this->keyTypes());
|
||||
@@ -105,7 +103,6 @@ class Yammer_common extends Memcached_DataObject
|
||||
* 'K' for primary key: for compound keys, add an entry for each component;
|
||||
* 'U' for unique keys: compound keys are not well supported here.
|
||||
*/
|
||||
|
||||
function keyTypes()
|
||||
{
|
||||
return array('id' => 'K', $this->__field => 'U');
|
||||
@@ -121,7 +118,6 @@ class Yammer_common extends Memcached_DataObject
|
||||
*
|
||||
* @return array magic three-false array that stops auto-incrementing.
|
||||
*/
|
||||
|
||||
function sequenceKey()
|
||||
{
|
||||
return array(false, false, false);
|
||||
@@ -135,7 +131,6 @@ class Yammer_common extends Memcached_DataObject
|
||||
*
|
||||
* @return Yammer_common new object for this value
|
||||
*/
|
||||
|
||||
protected static function doRecord($class, $field, $orig_id, $local_id)
|
||||
{
|
||||
$map = parent::staticGet($class, 'id', $orig_id);
|
||||
|
@@ -48,7 +48,6 @@ class Yammer_group extends Yammer_common
|
||||
* @return Yammer_group object found, or null for no hits
|
||||
*
|
||||
*/
|
||||
|
||||
function staticGet($k, $v=null)
|
||||
{
|
||||
return Memcached_DataObject::staticGet('Yammer_group', $k, $v);
|
||||
@@ -57,7 +56,6 @@ class Yammer_group extends Yammer_common
|
||||
/**
|
||||
* Return schema definition to set this table up in onCheckSchema
|
||||
*/
|
||||
|
||||
static function schemaDef()
|
||||
{
|
||||
return self::doSchemaDef('group_id');
|
||||
@@ -71,7 +69,6 @@ class Yammer_group extends Yammer_common
|
||||
*
|
||||
* @return Yammer_group new object for this value
|
||||
*/
|
||||
|
||||
static function record($orig_id, $group_id)
|
||||
{
|
||||
return self::doRecord('Yammer_group', 'group_id', $orig_id, $group_id);
|
||||
|
@@ -48,7 +48,6 @@ class Yammer_notice extends Yammer_common
|
||||
* @return Yammer_notice object found, or null for no hits
|
||||
*
|
||||
*/
|
||||
|
||||
function staticGet($k, $v=null)
|
||||
{
|
||||
return Memcached_DataObject::staticGet('Yammer_notice', $k, $v);
|
||||
@@ -57,7 +56,6 @@ class Yammer_notice extends Yammer_common
|
||||
/**
|
||||
* Return schema definition to set this table up in onCheckSchema
|
||||
*/
|
||||
|
||||
static function schemaDef()
|
||||
{
|
||||
return self::doSchemaDef('notice_id');
|
||||
@@ -71,7 +69,6 @@ class Yammer_notice extends Yammer_common
|
||||
*
|
||||
* @return Yammer_notice new object for this value
|
||||
*/
|
||||
|
||||
static function record($orig_id, $notice_id)
|
||||
{
|
||||
return self::doRecord('Yammer_notice', 'notice_id', $orig_id, $notice_id);
|
||||
|
@@ -40,7 +40,6 @@ if (!defined('STATUSNET')) {
|
||||
* down in reverse chronological order, then go back over them from oldest to
|
||||
* newest and actually save them into our notice table.
|
||||
*/
|
||||
|
||||
class Yammer_notice_stub extends Memcached_DataObject
|
||||
{
|
||||
public $__table = 'yammer_notice_stub'; // table name
|
||||
@@ -57,9 +56,7 @@ class Yammer_notice_stub extends Memcached_DataObject
|
||||
* @param mixed $v Value to lookup
|
||||
*
|
||||
* @return Yammer_notice_stub object found, or null for no hits
|
||||
*
|
||||
*/
|
||||
|
||||
function staticGet($k, $v=null)
|
||||
{
|
||||
return Memcached_DataObject::staticGet('Yammer_notice_stub', $k, $v);
|
||||
@@ -86,7 +83,6 @@ class Yammer_notice_stub extends Memcached_DataObject
|
||||
*
|
||||
* @return array array of column definitions
|
||||
*/
|
||||
|
||||
function table()
|
||||
{
|
||||
return array('id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
|
||||
@@ -121,7 +117,6 @@ class Yammer_notice_stub extends Memcached_DataObject
|
||||
* 'K' for primary key: for compound keys, add an entry for each component;
|
||||
* 'U' for unique keys: compound keys are not well supported here.
|
||||
*/
|
||||
|
||||
function keyTypes()
|
||||
{
|
||||
return array('id' => 'K');
|
||||
@@ -137,7 +132,6 @@ class Yammer_notice_stub extends Memcached_DataObject
|
||||
*
|
||||
* @return array magic three-false array that stops auto-incrementing.
|
||||
*/
|
||||
|
||||
function sequenceKey()
|
||||
{
|
||||
return array(false, false, false);
|
||||
|
@@ -55,9 +55,7 @@ class Yammer_state extends Memcached_DataObject
|
||||
* @param mixed $v Value to lookup
|
||||
*
|
||||
* @return Yammer_state object found, or null for no hits
|
||||
*
|
||||
*/
|
||||
|
||||
function staticGet($k, $v=null)
|
||||
{
|
||||
return Memcached_DataObject::staticGet('Yammer_state', $k, $v);
|
||||
@@ -90,7 +88,6 @@ class Yammer_state extends Memcached_DataObject
|
||||
*
|
||||
* @return array array of column definitions
|
||||
*/
|
||||
|
||||
function table()
|
||||
{
|
||||
return array('id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
|
||||
@@ -114,7 +111,6 @@ class Yammer_state extends Memcached_DataObject
|
||||
*
|
||||
* @return array list of key field names
|
||||
*/
|
||||
|
||||
function keys()
|
||||
{
|
||||
return array_keys($this->keyTypes());
|
||||
@@ -132,7 +128,6 @@ class Yammer_state extends Memcached_DataObject
|
||||
* 'K' for primary key: for compound keys, add an entry for each component;
|
||||
* 'U' for unique keys: compound keys are not well supported here.
|
||||
*/
|
||||
|
||||
function keyTypes()
|
||||
{
|
||||
return array('id' => 'K');
|
||||
@@ -148,7 +143,6 @@ class Yammer_state extends Memcached_DataObject
|
||||
*
|
||||
* @return array magic three-false array that stops auto-incrementing.
|
||||
*/
|
||||
|
||||
function sequenceKey()
|
||||
{
|
||||
return array(false, false, false);
|
||||
|
@@ -48,7 +48,6 @@ class Yammer_user extends Yammer_common
|
||||
* @return Yammer_user object found, or null for no hits
|
||||
*
|
||||
*/
|
||||
|
||||
function staticGet($k, $v=null)
|
||||
{
|
||||
return Memcached_DataObject::staticGet('Yammer_user', $k, $v);
|
||||
@@ -57,7 +56,6 @@ class Yammer_user extends Yammer_common
|
||||
/**
|
||||
* Return schema definition to set this table up in onCheckSchema
|
||||
*/
|
||||
|
||||
static function schemaDef()
|
||||
{
|
||||
return self::doSchemaDef('user_id');
|
||||
@@ -71,7 +69,6 @@ class Yammer_user extends Yammer_common
|
||||
*
|
||||
* @return Yammer_user new object for this value
|
||||
*/
|
||||
|
||||
static function record($orig_id, $user_id)
|
||||
{
|
||||
return self::doRecord('Yammer_user', 'user_id', $orig_id, $user_id);
|
||||
|
Reference in New Issue
Block a user