메소드 |
설명 |
|
AddImageToArticle ( integer $p_imageId, integer $p_articleNumber, integer $p_templateId = null ) : void |
Link the given image with the given article. The template ID
is the image's position in the template. |
|
ArticleImage ( integer $p_articleNumber = null, integer $p_imageId = null, integer $p_templateId = null ) : ArticleImage |
The ArticleImage table links together Articles with Images. |
|
GetArticlesThatUseImage ( $p_imageId ) : array |
Return an array of Article objects, all the articles
which use this image. |
|
GetImagesByArticleNumber ( integer $p_articleNumber, boolean $p_countOnly = false ) : mixed |
Get all the images that belong to this article. |
|
GetList ( array $p_parameters, array $p_order = [], integer $p_start, integer $p_limit, integer &$p_count, $p_skipCache = false ) : array |
Returns an article images list based on the given parameters. |
|
GetUnusedTemplateId ( integer $p_articleNumber ) |
Get a free Template ID. |
|
OnArticleCopy ( integer $p_srcArticleNumber, integer $p_destArticleNumber ) : void |
Copy all the pointers for the given article. |
|
OnArticleDelete ( integer $p_articleNumber ) : void |
Remove image pointers for the given article. |
|
OnImageDelete ( integer $p_imageId ) : void |
This is called when an image is deleted. |
|
RemoveImageTagsFromArticleText ( integer $p_articleNumber, integer $p_templateId ) : void |
Remove the image tags in the article text. |
|
TemplateIdInUse ( integer $p_articleNumber, integer $p_templateId ) : boolean |
Return true if article already is using the given template ID, false otherwise. |
|
delete ( ) : boolean |
Remove the linkage between the given image and the given article and remove
the image tags from the article text. |
|
getArticleNumber ( ) : integer |
|
|
getImage ( ) |
Return an Image object. |
|
getImageArticleIndex ( ) : integer |
|
|
getImageId ( ) : integer |
|
|
getTemplateId ( ) : integer |
|
|
setProperty ( $p_dbColumnName, $p_value, $p_commit = true, $p_isSql = false ) |
Wrapper around DatabaseObject::setProperty |
|
setTemplateId ( integer $p_templateId ) : boolean |
This call will only work for entries that already exist. |
|