本文整理汇总了PHP中arr::e方法的典型用法代码示例。如果您正苦于以下问题:PHP arr::e方法的具体用法?PHP arr::e怎么用?PHP arr::e使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类arr
的用法示例。
在下文中一共展示了arr::e方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pop_dir
/**
* Pops back to previous directory
*/
public static function pop_dir()
{
if (!arr::e(self::$dir_stack)) {
$dir = array_pop(self::$dir_stack);
chdir($dir);
}
}
示例2: __construct
public function __construct($config = array())
{
// Set the config
$this->config = $config;
// Set a filename, if we don't have one
if (str::e($this->config['filename'])) {
$this->config['filename'] = date("Y-m-d_g-ia");
}
// Build driver class
$driver = "Export_Driver_" . trim(strtoupper($config['driver']));
// Load the driver
if (!Eight::auto_load($driver)) {
throw new Export_Exception('export.driver_not_supported', $config['driver']);
}
// Initialize the driver
$this->driver = new $driver($this->config);
// Validate the driver
if (!$this->driver instanceof Export_Driver) {
throw new Export_Exception('export.driver_not_supported', 'Export drivers must use the Export_Driver interface.');
}
// Set the columns
if (!arr::e($this->config['columns'])) {
$this->driver->set_columns($this->config['columns']);
}
}
示例3: logs
/**
* Logs data.
*
* @return void
*/
public function logs()
{
$logs = Eight::log_get(TRUE);
if (arr::e($logs)) {
return;
}
if (!($table = $this->table('logs'))) {
return;
}
$table->add_column('ep-name');
$table->add_column('ep-column ep-data');
$table->add_column('ep-column ep-data');
$table->add_row(array('Log', 'Level', 'Date'), 'ep-title', '');
str::alternate();
foreach ($logs as $log) {
$data = array($name, $value);
$class = str::alternate('', 'ep-altrow');
$table->add_row(array_reverse($log), $class);
}
}