for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rudolf\Modules\Galleries\One\Admin;
use Rudolf\Framework\View\AdminView;
class DelView extends AdminView
{
/**
* Set data to delete gallery.
*
* @param array $gallery
*/
public function delGallery($gallery)
$this->gallery = new Gallery($gallery);
gallery
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
class MyClass { } $x = new MyClass(); $x->foo = true;
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:
class MyClass { public $foo; } $x = new MyClass(); $x->foo = true;
$this->pageTitle = _('Delete gallery');
pageTitle
$this->head->setTitle($this->pageTitle);
head
$this->path = $this->gallery->delUrl();
path
$this->template = 'gallery-del';
template
}
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: