<?php

class ScoreListEntry extends PhonalisaRecord
{

    public $number;
    public $score;
    public $comments;
    public $country;
    public $numberPrefix;
    public $searchRequest;
    public $callerType;
    public $deepLink;
    public $callerTypeId;
    public $callerName;
    public $prefixName;
    public $lastComment;
    public $created;

    public static function myAttributes()
    {
        return array(
            'number' => 'number',
            'score' => 'score',
            'comments' => 'comments',
            'country' => 'country',
            'numberPrefix' => 'numberPrefix',
            'searchRequest' => 'searchRequest',
            'callerType' => 'callerType',
            'deepLink' => 'deepLink',
            'callerTypeId' => 'callerTypeId',
            'callerName' => 'callerName',
            'prefixName' => 'prefixName',
            'lastComment' => 'lastComment',
            'created' => 'created'
        );
    }

    /**
     * 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(
                'number,'
                . 'score,'
                . 'comments,'
                . 'country,'
                . 'numberPrefix,'
                . 'searchRequest,'
                . 'callerType,'
                . 'deepLink,'
                . 'callerTypeId,'
                . 'callerName,'
                . 'prefixName,'
                . 'lastComment,'
                . 'created',
                'safe'
            ),
        );
    }

    /**
     * @return array customized attribute labels (name=>label)
     */
    public function attributeLabels()
    {
        return array(
            'number' => __('SCORELIST_ENTRY_MODEL_NUMBER'),
            'score' => __('SCORELIST_ENTRY_MODEL_SCORE'),
            'comments' => __('SCORELIST_ENTRY_MODEL_COMMENTS'),
            'country' => __('SCORELIST_ENTRY_MODEL_COUNTRY'),
            'numberPrefix' => __('SCORELIST_ENTRY_MODEL_NUMBER_PREFIX'),
            'searchRequest' => __('SCORELIST_ENTRY_MODEL_SEARCH_REQUEST'),
            'callerType' => __('SCORELIST_ENTRY_MODEL_CALLER_TYPE'),
            'deepLink' => __('SCORELIST_ENTRY_MODEL_DEEP_LINK'),
            'callerTypeId' => __('SCORELIST_ENTRY_MODEL_CALLER_TYPE_ID'),
            'callerName' => __('SCORELIST_ENTRY_MODEL_CALLER_NAME'),
            'prefixName' => __('SCORELIST_ENTRY_MODEL_PREFIX_NAME'),
            'lastComment' => __('SCORELIST_ENTRY_MODEL_LAST_COMMENT')
        );
    }
}
