src/Loaders/MysqlVariablesLoader.php
/**
     * Loads and returns data the custom validation data.
     *
     * @param \TechDivision\Import\Configuration\ParamsConfigurationInterface $configuration The configuration instance to load the validations from
     *
     * @return \ArrayAccess The array with the data
     */
Loads and returns data the custom validation data.
@param \TechDivision\Import\Configuration\ParamsConfigurationInterface $configuration The configuration instance to load the validations from

@return \ArrayAccess The array with the data
Loads and returns data the custom validation data . @param \ TechDivision \ Import \ Configuration \ ParamsConfigurationInterface $configuration The configuration instance to load the validations from @return \ ArrayAccess The array with the data
public function load(SubjectConfigurationInterface $configuration = null)
    {
        $rows = array();
        $statement = sprintf("SHOW %s VARIABLES LIKE %s", $this->getVariableScope(), $this->getVariableName());
        foreach ($this->getConnection()->query($statement) as $value) {
            if ($row = $this->prepareRow($value)) {
                $rows[] = $row;
            }
        }
        return $rows;
    }
public function load ( SubjectConfigurationInterface $ configuration = null ) { $ rows = array ( ) ; $ statement = sprintf ( " SHOW %s VARIABLES LIKE %s " , $ this -> getVariableScope ( ) , $ this -> getVariableName ( ) ) ; foreach ( $ this -> getConnection ( ) -> query ( $ statement ) as $ value ) { if ( $ row = $ this -> prepareRow ( $ value ) ) { $ rows [ ] = $ row ; } } return $ rows ; }
Loads and returns data the custom validation data.
Loads and returns data the custom validation data .
// initialize the array for the rows // prepare the statement // load and assemble the row // return the rows