return;
}
if ( !function_exists('stream_get_contents') ) {
- $this->errors->add('ssh2_php_requirement', __('The ssh2 PHP extension is available, however, we require the PHP5 function <code>stream_get_contents()</code>'));
+ $this->errors->add(
+ 'ssh2_php_requirement',
+ sprintf(
+ /* translators: %s: stream_get_contents() */
+ __( 'The ssh2 PHP extension is available, however, we require the PHP5 function %s' ),
+ '<code>stream_get_contents()</code>'
+ )
+ );
return;
}
*
* @param string $command
* @param bool $returnbool
- * @return bool|string
+ * @return bool|string True on success, false on failure. String if the command was executed, `$returnbool`
+ * is false (default), and data from the resulting stream was retrieved.
*/
public function run_command( $command, $returnbool = false ) {
if ( ! $this->link )
*
* @access public
*
- * @param string $file Path to the file.
- * @param string|int $owner A user name or number.
- * @param bool $recursive Optional. If set True changes file owner recursivly. Defaults to False.
- * @return bool|string Returns true on success or false on failure.
+ * @param string $file Path to the file.
+ * @param string|int $owner A user name or number.
+ * @param bool $recursive Optional. If set True changes file owner recursivly. Default False.
+ * @return bool True on success or false on failure.
*/
public function chown( $file, $owner, $recursive = false ) {
if ( ! $this->exists($file) )