/** * Class constructor. Defines the related database table name. * * @since 2.0.0 * @access public */ public function __construct() { parent::__construct('Comment'); $this->pageCache = Gdn::cache()->activeEnabled() && c('Properties.CommentModel.pageCache', false); $this->fireEvent('AfterConstruct'); }
/** * Class constructor. */ public function __construct() { parent::__construct('Comment'); $this->FireEvent('AfterConstruct'); }
/** * Class constructor. */ public function __construct() { parent::__construct('Discussion'); }
/** * Evented wrapper for Gdn_Model::SetField * * @param integer $RowID * @param string $Property * @param mixed $Value */ public function setField($RowID, $Property, $Value = false) { if (!is_array($Property)) { $Property = array($Property => $Value); } $this->EventArguments['DiscussionID'] = $RowID; if (!is_array($Property)) { $this->EventArguments['SetField'] = array($Property => $Value); } else { $this->EventArguments['SetField'] = $Property; } parent::SetField($RowID, $Property, $Value); $this->fireEvent('AfterSetField'); }
/** * Class constructor. Defines the related database table name. * * @since 2.0.0 * @access public */ public function __construct() { parent::__construct('Draft'); }
/** * {@inheritdoc} */ public function getCount($Wheres = '') { if (is_numeric($Wheres)) { deprecated('CommentModel->getCount(int)', 'CommentModel->getCountByDiscussion()'); return $this->getCountByDiscussion($Wheres); } return parent::getCount($Wheres); }
/** * Evented wrapper for Gdn_Model::SetField * * @param integer $RowID * @param string $Property * @param mixed $Value */ public function SetField($RowID, $Property, $Value = FALSE) { $this->EventArguments['DiscussionID'] = $RowID; $this->EventArguments['SetField'] = array($Property => $Value); parent::SetField($RowID, $Property, $Value); $this->fireEvent('AfterSetField'); }
/** * Class constructor. */ public function __construct() { parent::__construct('Comment'); }
/** * {@inheritdoc} */ public function getCount($Wheres = '') { if (is_numeric($Wheres)) { deprecated('DraftModel->getCount(int)', 'DraftModel->getCountByUser()'); return $this->getCountByUser($Wheres); } return parent::getCount($Wheres); }
public function __construct() { parent::__construct('Media'); }
/** * Class constructor. Defines the related database table name. * * @since 2.0.0 * @access public */ public function __construct() { parent::__construct('Comment'); $this->pageCache = Gdn::Cache()->ActiveEnabled() && C('Properties.CommentModel.pageCache', true); $this->FireEvent('AfterConstruct'); }