Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
profilefield_yahoo_update_url
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 depends_on
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 update_data
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
 update_contact_url
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3*
4* This file is part of the phpBB Forum Software package.
5*
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
7* @license GNU General Public License, version 2 (GPL-2.0)
8*
9* For full copyright and license information, please see
10* the docs/CREDITS.txt file.
11*
12*/
13
14namespace phpbb\db\migration\data\v31x;
15
16class profilefield_yahoo_update_url extends \phpbb\db\migration\migration
17{
18    public static function depends_on()
19    {
20        return array('\phpbb\db\migration\data\v31x\v312');
21    }
22
23    public function update_data()
24    {
25        return array(
26            array('custom', array(array($this, 'update_contact_url'))),
27        );
28    }
29
30    public function update_contact_url()
31    {
32        $sql = 'UPDATE ' . $this->table_prefix . "profile_fields
33            SET field_contact_url = 'ymsgr:sendim?%s'
34            WHERE field_name = 'phpbb_yahoo'
35                AND field_contact_url = 'http://edit.yahoo.com/config/send_webmesg?.target=%s&amp;.src=pg'";
36        $this->sql_query($sql);
37    }
38}