public function set_value($value) {

        // Getting the filemanager label from the DOM.
        $fieldlabel = $this->get_field_locator();

        // Getting the filepicker context and using the step definition
        // to upload the requested file.
        $uploadcontext = behat_context_helper::get('behat_repository_upload');
        $uploadcontext->i_upload_file_to_filemanager($value, $fieldlabel);
    }
public function set_value($value) {

        // Getting the filemanager label from the DOM.
        $fieldlabel = $this->get_field_locator();

        // Getting the filepicker context and using the step definition
        // to upload the requested file.
        $uploadcontext = behat_context_helper::get('behat_repository_upload');
        $uploadcontext->i_upload_file_to_filemanager($value, $fieldlabel);
    }
public function set_value ( $ value ) { // Getting the filemanager label from the DOM. $ fieldlabel = $ this -> get_field_locator ( ) ; // Getting the filepicker context and using the step definition // to upload the requested file. $ uploadcontext = behat_context_helper :: get ( 'behat_repository_upload' ) ; $ uploadcontext -> i_upload_file_to_filemanager ( $ value , $ fieldlabel ) ; }
Sets the field value.

@param string $value
@return void
Sets the field value .