Update
int CBlogImage::Update( int ID array arFields );
The method updates image in a blog. Static method.
Method parameters
Parameter | Description | Available from version |
---|---|---|
ID | Modified image ID. | |
arFields |
Array of the array("field"=>"value") type.
|
Returned value
The method returns ID of the modified image, if parameters were updated successfully. If an error occurs the method will return false, and exceptions will contain errors.Examples of use
Modify TITLE for the image with identifier 14:
$res = CBlogImage::Update( 14, array("TITLE" => "new image title") ); if($res) echo 'Success';
© «Bitrix24», 2001-2024