Skip to content

feat: Add Nas model and entity#22

Merged
jozefrebjak merged 2 commits intodevelopfrom
21-add-nas-model-and-entity
Feb 25, 2025
Merged

feat: Add Nas model and entity#22
jozefrebjak merged 2 commits intodevelopfrom
21-add-nas-model-and-entity

Conversation

@jakubnitsch
Copy link
Copy Markdown
Contributor

This pull request introduces a new Nas entity and a corresponding NasModel to the CodeIgniter FreeRadius package. These changes are aimed at managing NAS (Network Access Server) data within the application.

New Entity and Model:

  • src/Entities/Nas.php: Added a new Nas entity class with properties such as id, nasname, shortname, type, ports, secret, server, community, and description. This class extends CodeIgniter\Entity\Entity and includes type casting for each property.

  • src/Models/NasModel.php: Introduced a new NasModel class that extends BaseModel. This model is configured to use the Nas entity and manages fields such as nasname, shortname, type, ports, secret, server, community, and description. It also includes initialization to set the table name from the configuration.

Signed-off-by: Jakub Nitsch <jakubnitsch@gmail.com>
@jakubnitsch jakubnitsch added enhancement Enhancements ⬆️ tests:run Manually Run Tests 🧪 labels Feb 25, 2025
@jakubnitsch jakubnitsch self-assigned this Feb 25, 2025
@jakubnitsch jakubnitsch linked an issue Feb 25, 2025 that may be closed by this pull request
Signed-off-by: Jakub Nitsch <jakubnitsch@gmail.com>
@jozefrebjak jozefrebjak merged commit 1de546c into develop Feb 25, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancements ⬆️ tests:run Manually Run Tests 🧪

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Nas Model and Entity

2 participants