Cloudinary\Uploader::rename PHP 메소드

rename() 공개 정적인 메소드

public static rename ( $from_public_id, $to_public_id, $options = [] )
    public static function rename($from_public_id, $to_public_id, $options = array())
    {
        $params = array("timestamp" => time(), "type" => \Cloudinary::option_get($options, "type"), "from_public_id" => $from_public_id, "to_public_id" => $to_public_id, "invalidate" => \Cloudinary::option_get($options, "invalidate"), "overwrite" => \Cloudinary::option_get($options, "overwrite"));
        return Uploader::call_api("rename", $params, $options);
    }

Usage Example

예제 #1
0
 public function test_rename()
 {
     Curl::mockUpload($this);
     Uploader::rename("foobar", "foobar2", array("overwrite" => TRUE));
     assertUrl($this, "/image/rename");
     assertParam($this, "overwrite", 1);
     assertParam($this, "from_public_id", "foobar");
     assertParam($this, "to_public_id", "foobar2");
 }
All Usage Examples Of Cloudinary\Uploader::rename