Modernización de código en el plugin Proyectos#51
Merged
Conversation
…::eq() Simplifica las llamadas a loadWhere([Where::eq(...)]) por loadWhereEq() en Model/StockProyecto.php y Model/TareaProyecto.php.
Simplifica las llamadas a loadFromCode($id) por load($id) en Extension/Controller/NewServicioAT.php.
…ame() y getViewModelValue() Sustituye las llamadas deprecadas getMainViewName() y getViewModelValue() por sus reemplazos mainTabName() y tabModelValue() en Controller/EditNotaProyecto.php, Controller/EditProyecto.php, Controller/EditTareaProyecto.php, Extension/Controller/EditCliente.php y Extension/Controller/EditProducto.php.
Sustituye las llamadas deprecadas $this->request->get() por $this->request->queryOrInput() en Controller/EditProyecto.php, Controller/EditTareaProyecto.php, Extension/Controller/NewServicioAT.php y Extension/Traits/ProjectControllerSalesPurchases.php.
Sustituye el acceso directo $this->views[$viewName] por tab($viewName) para la vista principal o listView($viewName) para vistas de lista en Controller/ListProyecto.php, Controller/EditNotaProyecto.php, Controller/EditProyecto.php y Controller/EditTareaProyecto.php.
…ame, ...) Sustituye las llamadas deprecadas addButton($viewName, $btnArray) por tab($viewName)->addButton($btnArray) en Controller/EditProyecto.php y Controller/EditTareaProyecto.php.
Sustituye la llamada deprecada primaryColumnValue() por el nuevo método simplificado id() en Controller/EditProyecto.php.
abdedarghal111
marked this pull request as ready for review
July 23, 2026 07:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cambios
Model/EstadoProyecto.php,Model/NotaProyecto.php,Model/Proyecto.php,Model/StockProyecto.phpyModel/TareaProyecto.php, que usaban el formato/** descripción @var tipo */, al formato canónico del código/** @var tipo descripción */.loadWhere([Where::eq(...)])porloadWhereEq(...)enModel/StockProyecto.phpyModel/TareaProyecto.php.loadFromCode($id)porload($id)enExtension/Controller/NewServicioAT.php.getMainViewName()ygetViewModelValue()pormainTabName()ytabModelValue()enController/EditNotaProyecto.php,Controller/EditProyecto.php,Controller/EditTareaProyecto.php,Extension/Controller/EditCliente.phpyExtension/Controller/EditProducto.php.$this->request->get()por$this->request->queryOrInput()enController/EditProyecto.php,Controller/EditTareaProyecto.php,Extension/Controller/NewServicioAT.phpyExtension/Traits/ProjectControllerSalesPurchases.php.$this->views[$viewName]portab($viewName)/listView($viewName)enController/ListProyecto.php,Controller/EditNotaProyecto.php,Controller/EditProyecto.phpyController/EditTareaProyecto.php.addButton($viewName, ...)portab($viewName)->addButton(...)enController/EditProyecto.phpyController/EditTareaProyecto.php.primaryColumnValue()porid()enController/EditProyecto.php.Se aconseja revisar el PR mirando la sección de commits de forma progresiva, para ver cómo se ha ido modificando cada cosa poco a poco.
Tarea: https://facturascripts.com/roadmap/4862