Class item with unique identification number.

Author Message

Alejandro Dominguez

Thursday 04 November 2010 3:06:29 am

Hello !

I'm trying to create a new class for the items of a stocktaking. I would like to have in my class an atribute with a unique identification number. This number must be written by an user.

does anyone know how can I do this?

Thanks!

Alejandro Dominguez

Thursday 04 November 2010 3:17:38 am

I have think I need an unique alfanumeric id and not a number. i.e. rf2002

any ideas?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 20:32:34
Script start
Timing: Jan 30 2025 20:32:34
Module start 'layout'
Timing: Jan 30 2025 20:32:34
Module start 'content'
Timing: Jan 30 2025 20:32:34
Module end 'content'
Timing: Jan 30 2025 20:32:34
Script end

Main resources:

Total runtime0.0240 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.2578151.2266
Module start 'layout' 0.00540.0037 739.4844220.7266
Module start 'content' 0.00900.0135 960.2109997.7266
Module end 'content' 0.02250.0014 1,957.937529.9766
Script end 0.0240  1,987.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.0108140.0002
Check MTime0.00104.3551140.0001
Mysql Total
Database connection0.00093.740410.0009
Mysqli_queries0.002410.124130.0008
Looping result0.00000.049610.0000
Template Total0.00104.210.0010
Template load0.00083.131810.0008
Template processing0.00031.075410.0003
Override
Cache load0.00052.119910.0005
General
dbfile0.00104.264780.0001
String conversion0.00000.027840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs