From 138bf9949e6fccf591eed8f653a15773a15b22ff Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 7 Jul 2013 17:17:06 +0200 Subject: [PATCH] Update some comments and deprecation info --- class.base.php | 2 +- class.databaserecord.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/class.base.php b/class.base.php index 513c945..fe1780e 100644 --- a/class.base.php +++ b/class.base.php @@ -20,7 +20,7 @@ class CPHPBaseClass public function RenderTimeAgo($template, $property) { /* DEPRECATED: Please do not use this function if you can avoid it. - * A function offering similar functionality will be added soon. */ + * The time_ago function can now be used to accomplish the same. */ global $locale; $variable_name = "s{$property}"; diff --git a/class.databaserecord.php b/class.databaserecord.php index 52b8dd5..4cdcf61 100644 --- a/class.databaserecord.php +++ b/class.databaserecord.php @@ -44,7 +44,7 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass public function __get($name) { - // TODO: Don't overwrite current value in uVariable when sVariable is requested and uVariable is already set. + /* TODO: Don't overwrite current value in uVariable when sVariable is requested and uVariable is already set. */ if($name[0] == "s" || $name[0] == "u") { @@ -338,6 +338,10 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass public function DoRenderInternalTemplate() { + /* DEPRECATED: Please do not use this function. + * Class-specific templater functions have been discontinued. Instead, you can use + * Templater::AdvancedParse for rendering templates without instantiating a Templater + * yourself. */ if(!empty($this->render_template)) { $strings = array(); @@ -561,7 +565,7 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass public function RetrieveChildren($type, $field) { - // Not done yet! + /* Probably won't ever be fully implemented, now that there is CreateFromQuery. */ if(!isset($cphp_config->class_map->$type)) {