This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Class: phalconphp::deps::sys | |
# Installs gcc, make, automake, autoconf, re2c, pcre, pcre-devel, libcurl, libcurl-devel, wget | |
class phalconphp::deps::sys { | |
case $::osfamily { | |
'centos', 'redhat' : { # Define the package names for rhel | |
$packages = [ | |
'gcc', | |
'git', | |
'autoconf', | |
'make', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface GridInterface | |
{ | |
/** | |
* Get grid items for current page. | |
* | |
* @return array | |
*/ | |
public function getItems(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
foreach ($this->_getModels() as $model) { | |
$columns = array(); | |
$primaries = array(); | |
foreach ($model['columns'] as $columnName => $column) { | |
if (isset($column['is_primary']) && $column['is_primary']) { | |
$primaries = $columnName; | |
} |