public function updateModified()
    {
        $pathArray = explode( '/', trim( $this->attribute( 'path_string' ), '/' ) );

        if ( $this->attribute( 'main_tag_id' ) > 0 )
            array_push( $pathArray, $this->attribute( 'main_tag_id' ) );

        if ( !empty( $pathArray ) )
        {
            $db = eZDB::instance();
            $db->query( "UPDATE eztags SET modified = " . time() .
                        " WHERE " . $db->generateSQLINStatement( $pathArray, 'id', false, true, 'int' ) );
        }
    }
public function updateModified()
    {
        $pathArray = explode( '/', trim( $this->attribute( 'path_string' ), '/' ) );

        if ( $this->attribute( 'main_tag_id' ) > 0 )
            array_push( $pathArray, $this->attribute( 'main_tag_id' ) );

        if ( !empty( $pathArray ) )
        {
            $db = eZDB::instance();
            $db->query( "UPDATE eztags SET modified = " . time() .
                        " WHERE " . $db->generateSQLINStatement( $pathArray, 'id', false, true, 'int' ) );
        }
    }
public function updateModified ( ) { $ pathArray = explode ( '/' , trim ( $ this -> attribute ( 'path_string' ) , '/' ) ) ; if ( $ this -> attribute ( 'main_tag_id' ) > 0 ) array_push ( $ pathArray , $ this -> attribute ( 'main_tag_id' ) ) ; if ( ! empty ( $ pathArray ) ) { $ db = eZDB :: instance ( ) ; $ db -> query ( "UPDATE eztags SET modified = " . time ( ) . " WHERE " . $ db -> generateSQLINStatement ( $ pathArray , 'id' , false , true , 'int' ) ) ; } }
Updates modified timestamp on current tag and all of its parents
Expensive to run through API, so SQL takes care of it
Updates modified timestamp on current tag and all of its parents Expensive to run through API so SQL takes care of it