| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | class PictureHandler extends \XoopsPersistableObjectHandler |
||
| 34 | { |
||
| 35 | /** |
||
| 36 | * @var Helper |
||
| 37 | */ |
||
| 38 | public $helper; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Constructor |
||
| 42 | * @param null|\XoopsDatabase $db |
||
| 43 | * @param null|\XoopsModules\Adslight\Helper $helper |
||
| 44 | */ |
||
| 45 | |||
| 46 | public function __construct(\XoopsDatabase $db = null, $helper = null) |
||
| 47 | { |
||
| 48 | /** @var \XoopsModules\Adslight\Helper $this- >helper */ |
||
| 49 | $this->helper = $helper; |
||
| 50 | parent::__construct($db, 'adslight_pictures', Picture::class, 'cod_img', 'title'); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param bool $isNew |
||
| 55 | * |
||
| 56 | * @return \XoopsObject |
||
| 57 | */ |
||
| 58 | public function create($isNew = true) |
||
| 64 | } |
||
| 65 | } |
||
| 66 |