Documentation

onAfterAddVersion

Event is called in the method \Bitrix\Disk\Version::add after adding new file version.

Event parameters

Parameter Description
$model Object type \Bitrix\Disk\Version (created version)

Example

public static function add(array $data, ErrorCollection $errorCollection)
    {
    	$model = parent::add($data, $errorCollection);
    
    		if($model)
    	{
    			$event = new Event(Driver::INTERNAL_MODULE_ID, "onAfterAddVersion", array($model));
    			$event->send();
   		}
    
    	return $model;
    	}


© «Bitrix24», 2001-2024
Up