EntriesSql EntriesSql(
[
$loadindex = TRUE], [
$allow_write = TRUE]
)
|
|
Parameters:
|
|
$loadindex: |
|
|
|
$allow_write: |
|
void checkTimedPublish(
)
|
|
Checks if any entries set to 'timed publish' should be published.
void delete_comment(
int
$uid
)
|
|
Deletes the comment with the given comment ID (uid), updates the comment count for the associated entry and clears the related cache items.
Parameters:
void delete_entries(
array
$ids
)
|
|
Delete one or more entries
Parameters:
void delete_trackback(
int
$uid
)
|
|
Deletes the trackback with the given trackback ID (uid), updates the trackback count for the associated entry and clears the related cache items.
Parameters:
void depublish_entries(
array
$ids
)
|
|
Set one or more entries to 'hold'
Parameters:
boolean entry_exists(
$uid, int
$code
)
|
|
Tells if the entry exists - mysql implementation.
Parameters:
|
int |
$code: |
The code/id of the entry. |
|
|
$uid: |
|
rebuild the index of the Mysql Database. just here for compatibility.
array getArchiveArray(
[boolean
$force = FALSE], string
$unit
)
|
|
Gets an array of archives - mysql implementation.
In contrast to the flat file implementation, the file "db/ser-archives.php" isn't used.
Parameters:
|
boolean |
$force: |
ignored, only used by flat file implementation. |
|
string |
$unit: |
the unit of the archives. |
array getEntryInAllLanguages(
integer
$uid
)
|
|
Get a single entry in all languages by its uid
Parameters:
integer getUidEntryShadow(
$uid,
$language
)
|
|
Return the UID of the shadow entry for a specific entry uid and language
Parameters:
API Tags:
| Return: | return -1 if there is no shadow entry or uid if there is |
| Access: | protected |
array get_comment(
int
$uid
)
|
|
Returns a comment from the current entry.
Parameters:
string get_date(
int
$code
)
|
|
Gets the date for an entry
Parameters:
int get_entries_count(
[array
$params = false]
)
|
|
Gets the number of entries
Parameters:
array get_entry_by_uri(
string
$uri, [
$language = false]
)
|
|
Tries to get an entry by its (complete) URI.
The entry is returned as an associative array.
Parameters:
int get_next_code(
int
$num, [
$category = ""]
)
|
|
Gets the code of the next entry - mysql implementation.
Parameters:
int get_previous_code(
int
$num, [
$category = ""]
)
|
|
Gets the code of the previous entry - mysql implementation.
Parameters:
array get_trackback(
int
$uid
)
|
|
Returns a trackback from the current entry.
Parameters:
array guess_entry(
string
$uri, string
$date
)
|
|
Tries to guess an entry by it's (incomplete) URI and date (if necessary). The entry is returned as an associative array.
Parameters:
|
string |
$uri: |
|
|
string |
$date: |
|
Checks whether the current DB model needs to keep a separate index.
The flat file model does, but Mysql doesn't..
void publish_entries(
array
$ids
)
|
|
Set one or more entries to 'publish'
Parameters:
boolean readEntryShadow(
$entry_uid, array
&$entry, string
$language, integer
$uid
)
|
|
Read shadow columns for a specific uid and language
Parameters:
|
integer |
$uid: |
entry uid |
|
array |
&$entry: |
entry assoc. array |
|
string |
$language: |
language to read |
|
|
$entry_uid: |
|
API Tags:
| Return: | true if shadow data available |
| Access: | protected |
array read_admin_entries(
array
$params, [
$language = false]
)
|
|
Read a bunch of entries in the admin interface
Parameters:
|
array |
$params: |
|
|
|
$language: |
|
array read_entries(
array
$params, [
$language = false]
)
|
|
Read a bunch of entries
Parameters:
|
array |
$params: |
|
|
|
$language: |
|
array read_entries_count(
[array
$params = false]
)
|
|
Count the number of entries that will be read
Parameters:
array read_entry(
mixed
$code, [string
$date = ""], [string
$language = false], [
$keep_extrafields = false]
)
|
|
Retrieves a full entry as an associative array, and returns it. The $code parameter can be a code/uid or an URI. The optional $date parameter helps to narrow it down, if there's more than one option.
Parameters:
|
mixed |
$code: |
|
|
string |
$date: |
|
|
string |
$language: |
|
|
|
$keep_extrafields: |
|
array read_lasttrackbacks(
array
$params
)
|
|
Read the last trackbacks
Parameters:
array read_latestcomments(
array
$params
)
|
|
Read the latest comments
Parameters:
void sanitizePostedEntry(
array
&$entry
)
|
|
Sanitize pivotx back save
Parameters:
|
array |
&$entry: |
entry to save values in |
void saveEntryInAllLanguages(
[boolean
$update_index = true]
)
|
|
Save an entry in all languages
Parameters:
boolean save_entry(
[boolean
$update_index = TRUE], [
$language = false]
)
|
|
Saves the current entry - mysql implementation.
Returns true if successfully saved. Current implementation seems to return true no matter what...
Parameters:
|
boolean |
$update_index: |
Whether to update the date index. |
|
|
$language: |
|
array set_entry(
array
$entry
)
|
|
Sets the current entry to the contents of $entry - mysql implementation.
Returns the inserted entry as it got stored in the database with correct code/id.
Parameters:
|
array |
$entry: |
The entry to be inserted |
array __read_entries(
array
$params, [mixed
$language = false], [boolean
$admin = false]
)
|
|
Read a bunch of entries
Parameters:
|
array |
$params: |
|
|
mixed |
$language: |
(false for default) |
|
boolean |
$admin: |
(read entries for admin interface) |