<?php

class ScoreListEntryStatus extends PhonalisaRecord
{

    public $status;
    public $message;
    public $datetime;

    public static function myAttributes()
    {
        return array(
            'status' => 'status',
            'message' => 'message',
            'datetime' => 'datetime'
        );
    }

    /**
     * Returns the static model of the specified AR class.
     * @param string $className active record class name.
     * @return Job the static model class
     */
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

    /**
     * @return array validation rules for model attributes.
     */
    public function rules()
    {
        // NOTE: you should only define rules for those attributes that
        // will receive user inputs.
        return array(
            array('status, message, datetime', 'safe'),
        );
    }

    /**
     * @return array customized attribute labels (name=>label)
     */
    public function attributeLabels()
    {
        return array(
            'status' => __('SCORELIST_ENTRY_STATUS_MODEL_STATUS'),
            'message' => __('SCORELIST_ENTRY_STATUS_MODEL_MESSAGE'),
            'datetime' => __('SCORELIST_ENTRY_STATUS_MODEL_DATETIME')
        );
    }
}
