(lea) Controller\DataDelete

Mardi 01 Avril 2025, 11:11:59

<?php/** * Lea * * GNU General Public License * * Copyright © 2010 - 2025, Yohann Schwan. All rights reserved. */namespace Lea\Controller {  class DataDelete 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->remove($_REQUEST);      }    }  }}