for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace XoopsModules\Smartobject\Form\Elements;
/**
* Contains the SmartObjectControl class
*
* @license GNU
* @author marcan <[email protected]>
* @link http://smartfactory.ca The SmartFactory
* @package SmartObject
* @subpackage SmartObjectForm
*/
use XoopsModules\Smartobject;
* Class SmartFormLanguageElement
* @package XoopsModules\Smartobject\Form\Elements
class SmartFormLanguageElement extends \XoopsFormSelectLang
{
* SmartFormLanguageElement constructor.
* @param string $object
* @param string $key
public function __construct($object, $key)
$var = $object->vars[$key];
$control = $object->controls[$key];
$all = isset($control['all']) ? true : false;
parent::__construct($var['form_caption'], $key, $object->getVar($key, 'e'));
getVar
$object
string
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.
if ($all) {
$this->addOption('all', _ALL);
}
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.