* @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ * @package Prado\Data\ActiveRecord\Scaffold */ namespace Prado\Data\ActiveRecord\Scaffold; /** * IScaffoldEditRenderer interface. * * IScaffoldEditRenderer defines the interface that an edit renderer * needs to implement. Besides the {@link getData Data} property, an edit * renderer also needs to provide {@link updateRecord updateRecord} method * that is called before the save() method is called on the TActiveRecord. * * @author Wei Zhuo * @package Prado\Data\ActiveRecord\Scaffold * @since 3.1 */ interface IScaffoldEditRenderer extends IDataRenderer { /** * This method should update the record with the user input data. * @param TActiveRecord record to be saved. */ public function updateRecord($record); }