ArticleObject __construct(
)
|
|
The constructor which sets up some housekeeping attributes
API Tags:
Information Tags:
Redefinition of:
- AlphaDAO::__construct()
- The constructor which sets up some housekeeping attributes
void after_loadByAttribute_callback(
)
|
|
Set up the transient URL attributes for the artcile after it has loaded
API Tags:
Information Tags:
void after_load_callback(
)
|
|
Set up the transient URL attributes for the article after it has loaded
API Tags:
Information Tags:
void after_save_callback(
)
|
|
After creating a new ArticleObject, tokenize the description field to form a set of automated tags and save them.
API Tags:
Information Tags:
boolean checkUserVoted(
)
|
|
Method to determine if the logged-in user has already voted for this article
API Tags:
Return: | True if they have voted already, false otherwise |
Access: | public |
Information Tags:
Since: | 1.0 |
Throws: | AlphaException |
void createAttachmentsFolder(
)
|
|
Creates the attachment folder for the article on the server.
API Tags:
Information Tags:
Since: | 1.0 |
Throws: | AlphaException |
array getArticleComments(
)
|
|
Method for fetching all of the comments for this article
API Tags:
Return: | An array of ArticleCommentObject objects |
Access: | public |
Information Tags:
double getArticleScore(
)
|
|
Method for returning the calculated score for this article
API Tags:
Information Tags:
Method for fetching all of the votes for this article
API Tags:
Return: | An array of ArticleVoteObject objects |
Access: | public |
Information Tags:
void getAttachmentSecureURL(
string
$filename
)
|
|
Generates a secure URL for downloading an attachment file via the ViewAttachment controller
Parameters:
API Tags:
Information Tags:
string getAttachmentsLocation(
)
|
|
Generates the location of the attachments folder for this article
API Tags:
Information Tags:
string getAttachmentsURL(
)
|
|
Generates the URL of the attachments folder for this article
API Tags:
Information Tags:
string getContentFileDate(
)
|
|
Returns the timestamp of when the content .text file for this article was last modified.
API Tags:
Information Tags:
Since: | 1.0 |
Throws: | FileNotFoundException |
boolean isLoadedFromFile(
)
|
|
Returns true if the article content was loaded from a .text file, false otherwise.
API Tags:
Information Tags:
void loadContentFromFile(
$filePath
$filePath
)
|
|
Loads the content of the ArticleObject from the specified file path
Parameters:
API Tags:
Information Tags:
Since: | 1.0 |
Throws: | FileNotFoundException |
array loadRecentWithLimit(
$limit
)
|
|
Gets an array of the OIDs of the most recent articles added to the system (by date), from the newest article to the amount specified by the $limit
Parameters:
API Tags:
Information Tags:
Since: | 1.0 |
Throws: | AlphaException |