(Lea) Controller\DataUpdate

Dimanche 08 Février 2026, 22:25:23

<?php/** * Lea * * GNU General Public License * * Copyright © 2010 - 2025, Yohann Schwan. All rights reserved. */namespace Lea\Controller {  class DataUpdate extends \Lys\Controller  {    /**     * @trait \Lea\DataHelper     */    use DataHelper;    /**     * @args void     * @return bool     */    function populate()    {      if(parent::populate())      {        if($row = $this->data->find($_REQUEST))        {          $_REQUEST = $row + $_REQUEST;          #          return true;        }      }    }    /**     * @args void     * @return bool     */    function execute()    {      if(parent::execute())      {        return $this->data->update($_REQUEST);      }    }  }}