public static function add($status = null, $message = null, $uID = 0)
    {
        $model = Yii::createObject(__CLASS__);
        $model->user_id = ((int)$uID !== 0) ? (int)$uID : (int)$model->getUserID();
        $model->user_remote = $_SERVER['REMOTE_ADDR'];
        $model->action = Yii::$app->requestedAction->id;
        $model->category = Yii::$app->requestedAction->controller->id;
        $model->status = $status;
        $model->message = ($message !== null) ? serialize($message) : null;

        return $model->save();
    }
public static function add($status = null, $message = null, $uID = 0)
    {
        $model = Yii::createObject(__CLASS__);
        $model->user_id = ((int)$uID !== 0) ? (int)$uID : (int)$model->getUserID();
        $model->user_remote = $_SERVER['REMOTE_ADDR'];
        $model->action = Yii::$app->requestedAction->id;
        $model->category = Yii::$app->requestedAction->controller->id;
        $model->status = $status;
        $model->message = ($message !== null) ? serialize($message) : null;

        return $model->save();
    }
public static function add ( $ status = null , $ message = null , $ uID = 0 ) { $ model = Yii :: createObject ( __CLASS__ ) ; $ model -> user_id = ( ( int ) $ uID !== 0 ) ? ( int ) $ uID : ( int ) $ model -> getUserID ( ) ; $ model -> user_remote = $ _SERVER [ 'REMOTE_ADDR' ] ; $ model -> action = Yii :: $ app -> requestedAction -> id ; $ model -> category = Yii :: $ app -> requestedAction -> controller -> id ; $ model -> status = $ status ; $ model -> message = ( $ message !== null ) ? serialize ( $ message ) : null ; return $ model -> save ( ) ; }
Adds a message to ActionLog model

@param string $status The log status information
@param mixed $message The log message
@param int $uID The user id
Adds a message to ActionLog model