NewsModule::checkSelf PHP Method

checkSelf() public method

public checkSelf ( ) : array | boolean
return array | boolean
    public function checkSelf()
    {
        $messages = [];
        $uploadPath = Yii::app()->uploadManager->getBasePath() . DIRECTORY_SEPARATOR . $this->uploadPath;
        if (!is_writable($uploadPath)) {
            $messages[WebModule::CHECK_ERROR][] = ['type' => WebModule::CHECK_ERROR, 'message' => Yii::t('NewsModule.news', 'Directory "{dir}" is not accessible for write! {link}', ['{dir}' => $uploadPath, '{link}' => CHtml::link(Yii::t('NewsModule.news', 'Change settings'), ['/yupe/backend/modulesettings/', 'module' => 'news'])])];
        }
        return isset($messages[WebModule::CHECK_ERROR]) ? $messages : true;
    }