Element_OphTrConsent_Type::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
return the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Esempio n. 1
0
 */
if ($this->checkPrintAccess()) {
    $this->event_actions[] = EventAction::button('Print', 'print', array(), array('class' => 'button small'));
    $this->event_actions[] = EventAction::button('Print for visually impaired', 'print_va', array(), array('class' => 'button small'));
}
$this->beginContent('//patient/event_container');
?>

	<?php 
if ($this->event->delete_pending) {
    ?>
		<div class="alert-box alert with-icon">
			This event is pending deletion and has been locked.
		</div>
	<?php 
} elseif (Element_OphTrConsent_Type::model()->find('event_id=?', array($this->event->id))->draft) {
    ?>
		<div class="alert-box alert with-icon">
			This consent form is a draft and can still be edited
		</div>
	<?php 
}
?>

	<?php 
$this->renderOpenElements($this->action->id);
?>

	<?php 
// The "print" value is set by the controller and comes from the user session
?>
All Usage Examples Of Element_OphTrConsent_Type::model