protected function Image::chmod
protected Image::chmod($uri, $mode = NULL)
Provides a wrapper for drupal_chmod() to allow unit testing.
@todo Remove when https://www.drupal.org/node/2050759 is in.
Parameters
string $uri: A string containing a URI file, or directory path.
int $mode: Integer value for the permissions. Consult PHP chmod() documentation for more information.
Return value
bool TRUE for success, FALSE in the event of an error.
See also
File
- core/lib/Drupal/Core/Image/Image.php, line 218
Class
- Image
- Defines an image object to represent an image file.
Namespace
Drupal\Core\ImageCode
protected function chmod($uri, $mode = NULL) { return drupal_chmod($uri, $mode); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Image!Image.php/function/Image::chmod/8.1.x