| 1 |
<?php |
| 2 |
|
| 3 |
/* * class |
| 4 |
* Description of AbstractAccount |
| 5 |
* |
| 6 |
* @author Ali2Woo Team |
| 7 |
* |
| 8 |
* @position: 1 |
| 9 |
*/ |
| 10 |
|
| 11 |
namespace AliNext_Lite;; |
| 12 |
|
| 13 |
abstract class AbstractAccount { |
| 14 |
protected static $_instance = null; |
| 15 |
|
| 16 |
protected function __construct() { } |
| 17 |
|
| 18 |
abstract static public function getInstance(); |
| 19 |
|
| 20 |
abstract public function getDeeplink($hrefs); |
| 21 |
|
| 22 |
protected function getNormalizedLink($href){ |
| 23 |
preg_match('/([0-9]+)\.html/', $href, $match); |
| 24 |
$ext_id = $match[1]; |
| 25 |
$href = str_replace("{$ext_id}/", "", $href); |
| 26 |
|
| 27 |
return $href; |
| 28 |
} |
| 29 |
} |
| 30 |
|