private function loadAttributes() { //Obtiene la tabla de referencia de información de la produccion if (!preg_match_all('/<table[^>]*id=["\']name-overview-widget-layout*["\']\\>(.*?)<\\/table>/', $this->htmlContent, $match)) { return; } $match_content = $match[0][0]; //IMAGEN if (!preg_match_all('/<img\\s+.*?src=[\\"\']?([^\\"\' >]*)[\\"\']?[^>]*>(.*?)[\\"\']>/i', $match_content, $match_image, PREG_SET_ORDER)) { return; } $path_image = public_path("assets/db/images/") . md5($this->getName()) . ".jpg"; try { copy(strip_tags($match_image[0][1]), $path_image); } catch (\Exception $e) { } $this->setImage(Util::convertPathToUrl($path_image)); $this->loadContent(Util::filtrateUrl($this->url_provider) . "bio"); //BIOGRAFIA if (!preg_match_all('/<div[^>]*class=["\']soda odd*["\']\\>(.*?)<\\/p>/i', $this->htmlContent, $match_bio, PREG_SET_ORDER)) { return; } $bio = strip_tags(strip_tags($match_bio[0][0])); $this->setBiography(Util::traslateText($bio)); }