• one of my plugins generate a database table. In its code, it uses a array with width of 3.
    I want to save a long text into the table. So, I want to know what does 3 mean? 30%? or 3 charactor?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Which plugin? One you wrote or…?

    Thread Starter imjscn

    (@imjscn)

    @ipstenu ,
    in EventPress, this array is to store the meta data

    Array(
    	Array(
    		'width' => 4,
    		'id' => 'start',
    		'contents' => Array(&$this, 'metabox_start')
    	     ),
    	Array(
    		'width' => 6,
    		'id' => 'end',
    		'contents' => Array(&$this, 'metabox_end')
    		),
    	),

    the value is saved in post meta.
    I want to add some other keys in this array.
    Maybe the width is not for the post meta table, instead, the width might mean to be used in displaying html in front end. I don’t know.

    Thread Starter imjscn

    (@imjscn)

    by the way, I don’t understand “$this” in this line:
    'contents' => Array(&$this, 'metabox_end')
    This Array is within a function, “$this” here means this function or the component that this function belongs to?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I insert long value into an array with width of 3 ?’ is closed to new replies.