/** * Overridden to handle special getMyId method for convenience. */ public function __construct( R1soft_Remote $connection, $user = null ) { if( is_null( $user ) ) { parent::__construct( $connection, $connection->user->getMyId() ); } else { parent::__construct( $connection, $user ); } }
/** * Overridden to handle 'allowedScheduleFrequencies' array. */ public function __set( $name, $value ) { if( $name == 'allowedScheduleFrequencies' && is_array( $value ) ) { $this->_checkValid(); $this->_apiConnection->volume->setAllowedScheduleFrequencies( $this->_fields['volumeID'], $value[0], $value[1], $value[2], $value[3], $value[4] ); $this->_fields[$name] = $value; } else { parent::__set( $name, $value ); } }
protected function _setInvalid() { $this->_parent = null; parent::_setInvalid(); }