function run($request)
 {
     $count = VimeoDataObject::get()->count() + 1;
     for ($i = 0; $i < $count; $i++) {
         $obj = VimeoDataObject::get()->limit(1, $i)->First();
         if ($obj) {
             DB::alteration_message("Saving data for object with code " . $obj->VimeoCode, "created");
             $obj->HTML(true);
         }
     }
     DB::alteration_message("================ COMPLETED ====================");
 }
 public function updateCMSFields(FieldList $fields)
 {
     if ($this->HasVimeo()) {
         $listObject = VimeoDataObject::get();
         if ($listObject->count()) {
             $tab = _t("VimeoDOD.TAB", "Root.Vimeo");
             $list = array(0 => _t("VimeoDOD.EMPTYSTRING", "--- select vimeo video ---")) + $listObject->map($index = 'ID', $titleField = 'Title')->toArray();
             $fields->addFieldToTab($tab, new DropdownField("VimeoDataObjectID", _t("VimeoDOD.URLFIELD", "Video"), $list));
             $linkToModelAdmin = _t("VimeoDOD.LINKTOMODELADMIN", "To edit your videos, please go to <a href=\"/admin/vimeos\">Vimeo Editing Page</a>.");
             $fields->addFieldToTab($tab, new LiteralField("VimeoDataObjectIDEDIT", "<p>{$linkToModelAdmin}</p>"));
         }
     }
     return $fields;
 }