···263263 }
264264265265 /**
266266- * DEPRECATED
266266+ * @deprecated
267267 */
268268 public function get_date_format()
269269 {
270270- error_log('DEPRECATION WARNING: Config::get_date_format() has been deprecated and will be removed in a future version. Please ActiveRecord\Serialization::$DATETIME_FORMAT instead.');
270270+ trigger_error('Use ActiveRecord\Serialization::$DATETIME_FORMAT. Config::get_date_format() has been deprecated.', E_USER_DEPRECATED);
271271 return Serialization::$DATETIME_FORMAT;
272272 }
273273274274 /**
275275- * DEPRECATED
275275+ * @deprecated
276276 */
277277 public function set_date_format($format)
278278 {
279279- error_log('DEPRECATION WARNING: Config::set_date_format() has been deprecated and will be removed in a future version. Please use ActiveRecord\Serialization::$DATETIME_FORMAT instead.');
279279+ trigger_error('Use ActiveRecord\Serialization::$DATETIME_FORMAT. Config::set_date_format() has been deprecated.', E_USER_DEPRECATED);
280280 Serialization::$DATETIME_FORMAT = $format;
281281 }
282282
+3-3
lib/php-activerecord/lib/Table.php
···538538 }
539539540540 /**
541541- * DEPRECATED: Model.php now checks for get|set_ methods via method_exists so there is no need for declaring static g|setters.
541541+ * @deprecated Model.php now checks for get|set_ methods via method_exists so there is no need for declaring static g|setters.
542542 */
543543 private function set_setters_and_getters()
544544 {
···546546 $setters = $this->class->getStaticPropertyValue('setters', array());
547547548548 if (!empty($getters) || !empty($setters))
549549- error_log('DEPRECATION WARNING: static::$getters and static::$setters is deprecated and will be removed in a future version. Please define your setters and getters by declaring methods in your model prefixed with get_ or set_. See
550550- http://www.phpactiverecord.org/projects/main/wiki/Utilities#attribute-setters and http://www.phpactiverecord.org/projects/main/wiki/Utilities#attribute-getters on how to make use of this option.');
549549+ trigger_error('static::$getters and static::$setters are deprecated. Please define your setters and getters by declaring methods in your model prefixed with get_ or set_. See
550550+ http://www.phpactiverecord.org/projects/main/wiki/Utilities#attribute-setters and http://www.phpactiverecord.org/projects/main/wiki/Utilities#attribute-getters on how to make use of this option.', E_USER_DEPRECATED);
551551 }
552552};
553553?>