for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* HiPanel core package
*
* @link https://hipanel.com/
* @package hipanel-core
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2019, HiQDev (http://hiqdev.com/)
*/
namespace hipanel\models;
use hipanel\base\ModelTrait;
* Class File.
* @property string type
class File extends \hiqdev\hiart\ActiveRecord
{
use ModelTrait;
public function rules()
return [
[['id', 'type_id', 'state_id', 'client_id', 'seller_id', 'object_id', 'size'], 'integer'],
[['filename', 'md5', 'type', 'state', 'client', 'seller'], 'safe'],
[['create_time', 'update_time', 'month'], 'safe'],
[['url', 'filename'], 'string', 'on' => ['put']],
];
}