Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gnu-social
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
194
Issues
194
List
Boards
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gnu.io
gnu-social
Commits
feb9030f
Commit
feb9030f
authored
Aug 22, 2011
by
Evan Prodromou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove sequenceKey() since we now use Managed_DataObject
parent
7c6399a5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
49 deletions
+0
-49
classes/Confirm_address.php
classes/Confirm_address.php
+0
-3
classes/File_oembed.php
classes/File_oembed.php
+0
-5
classes/File_thumbnail.php
classes/File_thumbnail.php
+0
-5
classes/Inbox.php
classes/Inbox.php
+0
-5
classes/Login_token.php
classes/Login_token.php
+0
-13
classes/Remember_me.php
classes/Remember_me.php
+0
-5
classes/User_im_prefs.php
classes/User_im_prefs.php
+0
-13
No files found.
classes/Confirm_address.php
View file @
feb9030f
...
...
@@ -26,9 +26,6 @@ class Confirm_address extends Managed_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
function
sequenceKey
()
{
return
array
(
false
,
false
);
}
public
static
function
schemaDef
()
{
return
array
(
...
...
classes/File_oembed.php
View file @
feb9030f
...
...
@@ -79,11 +79,6 @@ class File_oembed extends Managed_DataObject
);
}
function
sequenceKey
()
{
return
array
(
false
,
false
,
false
);
}
function
_getOembed
(
$url
)
{
$parameters
=
array
(
'maxwidth'
=>
common_config
(
'attachments'
,
'thumb_width'
),
...
...
classes/File_thumbnail.php
View file @
feb9030f
...
...
@@ -63,11 +63,6 @@ class File_thumbnail extends Managed_DataObject
);
}
function
sequenceKey
()
{
return
array
(
false
,
false
,
false
);
}
/**
* Save oEmbed-provided thumbnail data
*
...
...
classes/Inbox.php
View file @
feb9030f
...
...
@@ -61,11 +61,6 @@ class Inbox extends Managed_DataObject
);
}
function
sequenceKey
()
{
return
array
(
false
,
false
,
false
);
}
/**
* Create a new inbox from existing Notice_inbox stuff
*/
...
...
classes/Login_token.php
View file @
feb9030f
...
...
@@ -58,19 +58,6 @@ class Login_token extends Managed_DataObject
const
TIMEOUT
=
120
;
// seconds after which to timeout the token
/*
DB_DataObject calculates the sequence key(s) by taking the first key returned by the keys() function.
In this case, the keys() function returns user_id as the first key. user_id is not a sequence, but
DB_DataObject's sequenceKey() will incorrectly think it is. Then, since the sequenceKey() is a numeric
type, but is not set to autoincrement in the database, DB_DataObject will create a _seq table and
manage the sequence itself. This is not the correct behavior for the user_id in this class.
So we override that incorrect behavior, and simply say there is no sequence key.
*/
function
sequenceKey
()
{
return
array
(
false
,
false
);
}
function
makeNew
(
$user
)
{
$login_token
=
Login_token
::
staticGet
(
'user_id'
,
$user
->
id
);
...
...
classes/Remember_me.php
View file @
feb9030f
...
...
@@ -23,11 +23,6 @@ class Remember_me extends Managed_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
function
sequenceKey
()
{
return
array
(
false
,
false
);
}
public
static
function
schemaDef
()
{
return
array
(
...
...
classes/User_im_prefs.php
View file @
feb9030f
...
...
@@ -80,19 +80,6 @@ class User_im_prefs extends Managed_DataObject
);
}
/*
DB_DataObject calculates the sequence key(s) by taking the first key returned by the keys() function.
In this case, the keys() function returns user_id as the first key. user_id is not a sequence, but
DB_DataObject's sequenceKey() will incorrectly think it is. Then, since the sequenceKey() is a numeric
type, but is not set to autoincrement in the database, DB_DataObject will create a _seq table and
manage the sequence itself. This is not the correct behavior for the user_id in this class.
So we override that incorrect behavior, and simply say there is no sequence key.
*/
function
sequenceKey
()
{
return
array
(
false
,
false
);
}
/**
* We have two compound keys with unique constraints:
* (transport, user_id) which is our primary key, and
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment