7 namespace Dcp\Core\vidExtractor;
31 if (!is_array($raw)) {
32 throw new Exception(
'VIDEXTRACTOR0001', gettype($raw));
34 if ($fileAttrIdList === null) {
35 if (!isset($raw[
'id'])) {
38 $fileAttrIdList = array();
40 if (!is_object(
$doc)) {
41 throw new Exception(
'VIDEXTRACTOR0003', $raw[
'id']);
43 $fileAttrList =
$doc->getFileAttributes();
44 foreach ($fileAttrList as $attrId => $attr) {
45 $fileAttrIdList[] = $attrId;
50 if (!empty($raw[
'icon']) && ($vid = self::parseVid($raw[
'icon'])) !==
false) {
54 foreach ($fileAttrIdList as $attr) {
55 if (!isset($raw[$attr])) {
58 $values = $raw[$attr];
59 $values = preg_split(
'/\n/', str_replace(
'<BR>',
"\n", $values));
60 foreach ($values as
$value) {
61 if (($vid = self::parseVid($value)) !==
false) {
84 foreach ($list as $aid =>
$value) {
89 if ($oattr->type !==
'file' && $oattr->type !==
'image') {
92 if ($oattr->inArray()) {
102 if (isset($docfam->icon)) {
103 $values[] = $docfam->icon;
109 foreach ($values as
$value) {
110 if (($vid = self::parseVid($value)) !==
false) {
125 $fa = $doc->GetFileAttributes();
127 foreach ($fa as $aid => $oattr) {
128 if ($oattr->inArray()) {
135 foreach ($ta as $k => $v) {
136 if (($vid = self::parseVid($v)) !==
false) {
142 if (isset($doc->icon)) {
143 if (($vid = self::parseVid($doc->icon)) !==
false) {
& getAttribute($idAttr, &$oa=null, $useMask=true)
static rawValueToArray($v)
Exception class use exceptionCode to identifiy correctly exception.
static getError($code, $args=null)
getMultipleRawValues($idAttr, $def="", $index=-1)
new_Doc($dbaccess, $id= '', $latest=false)
getRawValue($idAttr, $def="")