/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
vendor
/
mirko-pagliai
/
me-tools
/
src
/
Model
/
Table
/
/var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/me-tools/src/Model/Table
mkdir
upload
Name
Size
Mode
Actions
AppTable.php
1249
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/me-tools/src/Model/Table/AppTable.php
(1249B)
<?php declare(strict_types=1); /** * This file is part of me-tools. * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) Mirko Pagliai * @link https://github.com/mirko-pagliai/me-tools * @license https://opensource.org/licenses/mit-license.php MIT License * @since 2.25.0 */ namespace MeTools\Model\Table; use Cake\ORM\Query; use Cake\ORM\Table; use MeTools\Model\Validation\AppValidator; /** * Represents a single database table * * @method \Cake\ORM\Query findById($id) */ abstract class AppTable extends Table { /** * @inheritDoc */ public function initialize(array $config): void { parent::initialize($config); $this->_validatorClass = AppValidator::class; } /** * `active` find method * @param \Cake\ORM\Query $Query The query builder * @return \Cake\ORM\Query The query builder * @see \Cake\ORM\Table::find() for options to use for the find */ public function findActive(Query $Query): Query { return $Query->where([$this->getAlias() . '.active' => true]); } }
Save
cmd:
run