YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/BusinessHours/models/Module.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class Settings_BusinessHours_Module_Model extends Settings_Vtiger_Module_Model

The class Settings_BusinessHours_Module_Model is not named in CamelCase.
Open

class Settings_BusinessHours_Module_Model extends Settings_Vtiger_Module_Model
{
    /**
     * Base table.
     *

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

Spaces must be used to indent lines; tabs are not allowed
Open

     * @var array

Spaces must be used to indent lines; tabs are not allowed
Open

    /** {@inheritdoc} */

Spaces must be used to indent lines; tabs are not allowed
Open

     * Base table.

Spaces must be used to indent lines; tabs are not allowed
Open

     * @var string

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        return 'index.php?module=BusinessHours&parent=Settings&view=Edit';

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getDefaultUrl(): string

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getEditViewUrl(): string

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getCreateRecordUrl(): string

Spaces must be used to indent lines; tabs are not allowed
Open

    public $baseIndex = 'id';

Spaces must be used to indent lines; tabs are not allowed
Open

     * List fields.

Spaces must be used to indent lines; tabs are not allowed
Open

    ];

Spaces must be used to indent lines; tabs are not allowed
Open

        return 'index.php?module=' . $this->getName() . '&parent=' . $this->getParentName() . '&view=List';

Spaces must be used to indent lines; tabs are not allowed
Open

        return 'index.php?module=BusinessHours&parent=Settings&view=List';

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

        'name' => 'LBL_NAME',

Spaces must be used to indent lines; tabs are not allowed
Open

        'default_times' => 'LBL_DEFAULT_TIMES',

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

     * Base index.

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

     * Name fields.

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

     * Module name.

Spaces must be used to indent lines; tabs are not allowed
Open

    /** {@inheritdoc} */

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getIndexViewUrl(): string

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

        'working_hours_to' => 'LBL_WORKING_HOURS_TO',

Spaces must be used to indent lines; tabs are not allowed
Open

        'default' => 'LBL_DEFAULT'

Spaces must be used to indent lines; tabs are not allowed
Open

    /** {@inheritdoc} */

Spaces must be used to indent lines; tabs are not allowed
Open

    public $listFields = [

Spaces must be used to indent lines; tabs are not allowed
Open

     * @var string

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        'working_hours_from' => 'LBL_WORKING_HOURS_FROM',

Spaces must be used to indent lines; tabs are not allowed
Open

    public $nameFields = ['name'];

Spaces must be used to indent lines; tabs are not allowed
Open

    public $name = 'BusinessHours';

Spaces must be used to indent lines; tabs are not allowed
Open

    /** {@inheritdoc} */

Spaces must be used to indent lines; tabs are not allowed
Open

        return 'index.php?module=BusinessHours&parent=Settings&view=List';

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

    public $baseTable = 's_#__business_hours';

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

     * @var array

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

    /** {@inheritdoc} */

Spaces must be used to indent lines; tabs are not allowed
Open

    public function isPagingSupported(): bool

Spaces must be used to indent lines; tabs are not allowed
Open

        return false;

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

     * @var string

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getListViewUrl(): string

Spaces must be used to indent lines; tabs are not allowed
Open

        return 'index.php?module=BusinessHours&parent=Settings&view=Edit';

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

        'working_days' => 'LBL_WORKING_DAYS',

Spaces must be used to indent lines; tabs are not allowed
Open

    /** {@inheritdoc} */

Class name "Settings_BusinessHours_Module_Model" is not in camel caps format
Open

class Settings_BusinessHours_Module_Model extends Settings_Vtiger_Module_Model

There are no issues that match your filters.

Category
Status