Update
int CBlogSitePath::Update( int ID array arFields );
The method updates parameters of a path with the ID. Non-static method.
Method parameters
Parameter | Description |
---|---|
ID | Updated path ID. |
arFields | Array of the array("SITE_ID"=>"site ID", "PATH"=>"path")type. |
Returned value
The method returns the ID of the modified path, if the parameter update is successful. If an error occurs, the method will return false, and exceptions will contain errors.See Also
Examples of use
<? $ID = 1; $arFields = array( "SITE_ID" => "ru", "PATH" => "/ru/blog/" ); $updateID = CBlogSitePath::Update($ID, $arFields); if(IntVal($updateID)>0) { echo "Path [".$updateID."] is updated."; } else { if ($ex = $APPLICATION->GetException()) echo $ex->GetString(); } ?>
© «Bitrix24», 2001-2024