public function info() { // optional helpers require_once VIMEOGRAPHY_PATH . 'lib/helpers.php'; $helpers = new Vimeography_Helpers(); // add featured video to the beginning of the array if (is_array($this->featured)) { array_unshift($this->data, $this->featured[0]); } $items = array(); foreach ($this->data as $item) { if ($item->duration and !strpos($item->duration, ':')) { $item->duration = $helpers->seconds_to_minutes($item->duration); } $items[] = $item; } return $items; }
public function videos() { // optional helpers require_once VIMEOGRAPHY_PATH . 'lib/helpers.php'; $helpers = new Vimeography_Helpers(); // add featured video to the beginning of the array if (is_array($this->featured)) { array_unshift($this->data, $this->featured[0]); } return $helpers->apply_common_formatting($this->data); }