PluginProbe
Vimeography: Vimeo Video Gallery WordPress Plugin / 2.2
Vimeography: Vimeo Video Gallery WordPress Plugin v2.2
2.4.9 2.4.8 trunk 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 0.6 0.6.1 0.6.2 0.6.3 0.6.4 0.6.5 0.6.6 0.6.7 0.6.8 0.6.8.1 0.6.9 0.6.9.1 0.6.9.2 0.7 0.8 All 103 releases
vimeography / lib / core / basic.php

basic.php in Vimeography: Vimeo Video Gallery WordPress Plugin 2.2, at lib/core/basic.php

27 lines 691 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Vimeography\Basic;
4
5 class Core extends \Vimeography\Core {
6
7 public function __construct( $engine ) {
8 parent::__construct( $engine );
9
10 $token = trim( get_option('vimeography_access_token') );
11
12 $this->_auth = $token ? $token : VIMEOGRAPHY_ACCESS_TOKEN;
13 $this->_vimeo = new \Vimeography\Vimeo( NULL, NULL, $this->_auth );
14 }
15
16 /**
17 * Checks if the provided resource is a valid resource.
18 *
19 * @param string $resource A Vimeo API resource
20 * @return int 1 if match found, 0 if not.
21 */
22 protected function _verify_vimeo_resource( $resource ) {
23 return preg_match( '#^/(users|channels|albums|groups)/(.+)#', $resource );
24 }
25
26 }
27