function FindById($id) { return MyActiveRecord::FindById('Blog_Entries', $id); }
function FindById($id) { return MyActiveRecord::FindById('Documents', $id); }
function get_parent() { return MyActiveRecord::FindById('Pages', $this->parent_page_id); }
function FindById($id) { return MyActiveRecord::FindById('portfolioimages', $id); }
function FindById($id) { return MyActiveRecord::FindById('Testimonials', $id); }
function FindById($id) { return MyActiveRecord::FindById("MailBlast", $id); }
function FindById($id) { return MyActiveRecord::FindById('categories', $id); }
function FindById($id) { return MyActiveRecord::FindById('Galleries', $id); }
function FindById($id) { return MyActiveRecord::FindById('Recurrence', $id); }
function FindById($id = "") { // Double check the id to see if it is numeric? Does MyActiveRecord already do that? return MyActiveRecord::FindById('Chunks', $id); }
function FindById($id) { return MyActiveRecord::FindById('Product', $id); }
function FindById($id) { return MyActiveRecord::FindById('Photos', $id); }
function FindById($id = 1) { return MyActiveRecord::FindById('Blogs', $id); }
function FindById($id) { return MyActiveRecord::FindById('NLLists', $id); }
function FindById($id) { return MyActiveRecord::FindById('EventPeriods', $id); }
function FindById($id) { return MyActiveRecord::FindById('EventTypes', $id); }
/** * returns 'parent' object. * e.g. * <code> * $topic = $post->find_parent('Topic'); * </code> * * In order for the above to work, you would need to have an integer * field called 'Topic_id' in your 'Post' table. MyActiveRecord will take * care of the rest. * * @param string strClass Name of the class of objects to return in the array * @param string strForeignKey Optional specification of foreign key at runtime * @return object object of class strClass */ public function find_parent($strClass, $strForeignKey = NULL) { $key = $strForeignKey or $key = strtolower($strClass . '_id'); return MyActiveRecord::FindById($strClass, $this->{$key}); }
function FindById($id) { $itemid = mysql_real_escape_string($id, MyActiveRecord::Connection()); return MyActiveRecord::FindById('Items', $itemid); }
function FindById($id) { return MyActiveRecord::FindById('Paypal_Config', $id); }
function FindById($id) { return MyActiveRecord::FindById('Users', $id); }
static function FindById($strClass, $mxdID, $extend = FALSE, $cache_reset = false) { if (!AppModel::_smartLoadModel($strClass)) { return false; } if ($cache_reset) { $cache_reset = rand(); $objects = array(array_shift(AppModel::FindAll($strClass, true, array('id' => $mxdID, "'{$cache_reset}'" => $cache_reset), 'id', 1))); } else { $objects = array(parent::FindById($strClass, $mxdID)); } if ($extend) { AppModel::AddAllRelated($objects); } return $objects[0]; }