Add
int CBlogSitePath::Add( array arFields );
Method adds a new path. Non-static method.
Method parameters
Parameter | Description |
---|---|
arFields | Array of the array("SITE_ID"=>"value", "PATH"=>"value") type. |
Returned value
Metro returns ID of the added path, if the adding was successful. When an error occurs, the method will return false, and exceptions will contain errors.See Also
Examples of use
<? $arFields = array( "SITE_ID" => "ru", "PATH" => "/blog/" ); $newID = CBlogSitePath::Add($arFields); if(IntVal($newID)>0) { echo "New path [".$newID."] is added."; } else { if ($ex = $APPLICATION->GetException()) echo $ex->GetString(); } ?>
© «Bitrix24», 2001-2024