projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a few comment blocks
[civicrm-core.git]
/
bin
/
cli.class.php
diff --git
a/bin/cli.class.php
b/bin/cli.class.php
index 10bb27db0d472a27bd73a111659237aed45e8e18..f7999d383ad960904a3b0b55820364be75c41824 100644
(file)
--- a/
bin/cli.class.php
+++ b/
bin/cli.class.php
@@
-77,6
+77,11
@@
class civicrm_cli {
return TRUE;
}
return TRUE;
}
+ /**
+ * Ensure function is being run from the cli.
+ *
+ * @return bool
+ */
public function _accessing_from_cli() {
if (PHP_SAPI === 'cli') {
return TRUE;
public function _accessing_from_cli() {
if (PHP_SAPI === 'cli') {
return TRUE;
@@
-370,6
+375,9
@@
class civicrm_cli_csv_file extends civicrm_cli {
parent::initialize();
}
parent::initialize();
}
+ /**
+ * Run CLI function.
+ */
public function run() {
$this->row = 1;
$handle = fopen($this->_file, "r");
public function run() {
$this->row = 1;
$handle = fopen($this->_file, "r");
@@
-402,7
+410,6
@@
class civicrm_cli_csv_file extends civicrm_cli {
$this->processLine($params);
}
fclose($handle);
$this->processLine($params);
}
fclose($handle);
- return NULL;
}
/* return a params as expected */
}
/* return a params as expected */